You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+82-1Lines changed: 82 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,88 @@ Profitable.mrr # => 123456
133
133
134
134
## Development
135
135
136
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
136
+
### Setup
137
+
138
+
After checking out the repo, install dependencies:
139
+
140
+
```bash
141
+
bundle install
142
+
```
143
+
144
+
### Running Tests
145
+
146
+
The gem includes a comprehensive test suite with 211 tests covering all functionality:
147
+
148
+
```bash
149
+
# Run all tests
150
+
bundle exec rake test
151
+
152
+
# Run tests with verbose output
153
+
bundle exec rake test TESTOPTS="-v"
154
+
```
155
+
156
+
### Testing Against Multiple Pay Gem Versions
157
+
158
+
This gem uses [Appraisal](https://github.com/thoughtbot/appraisal) to test against multiple versions of the Pay gem, ensuring compatibility across Pay 7.x through 11.x.
159
+
160
+
**Supported Pay versions:**
161
+
- Pay 7.3.x (minimum supported version)
162
+
- Pay 8.3.x
163
+
- Pay 9.0.x
164
+
- Pay 10.x (with `object` column support)
165
+
- Pay 11.x (latest)
166
+
167
+
**Generate appraisal gemfiles:**
168
+
169
+
```bash
170
+
bundle exec appraisal install
171
+
```
172
+
173
+
**Run tests against a specific Pay version:**
174
+
175
+
```bash
176
+
# Test against Pay 10.x
177
+
bundle exec appraisal pay-10.0 rake test
178
+
179
+
# Test against Pay 11.x
180
+
bundle exec appraisal pay-11.0 rake test
181
+
```
182
+
183
+
**Run tests against all Pay versions:**
184
+
185
+
```bash
186
+
bundle exec appraisal rake test
187
+
```
188
+
189
+
### Continuous Integration
190
+
191
+
The gem uses GitHub Actions to automatically test against:
0 commit comments