Commit 1a164bc
authored
Test more recent versions of Ruby on Travis (zipmark#480)
* Test more recent versions of Ruby on Travis
Added:
- 2.4.9 (reached end-of-life but may temporarily help in incremental debugging)
- 2.5.8
- 2.6.6
Did not add 2.7.x yet because it introduces *a lot* of warnings.
Did not remove any past version yet because until decided otherwise,
they should be supported by the gem. (I would recommend a major version
bump when those versions get dropped.)
The idea is that developments from now on should be future-proof, and
changes should be tested on current versions of Ruby.
* Update WebMock to latest 2.x version
Updating to WebMock 2.x means that:
> require 'webmock' does not enable WebMock anymore. gem 'webmock' can
now be safely added to a Gemfile and no http client libs will be
modified when it's loaded. Call WebMock.enable! to enable WebMock.
>
> Please note that require 'webmock/rspec', require 'webmock/test_unit',
require 'webmock/minitest' and require 'webmock/cucumber' still do
enable WebMock.
Source: [WebMock's
CHANGELOG.md](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md#200).
As rspec_api_documentation is very much tied to RSpec, I saw no problem
with replacing all instances of `require 'webmock'` with `require
'webmock/rspec'`.
* Update WebMock dependency to 3.2.0
3.2.0 introduced another breaking change that had to be addressed:
[Automatically disable WebMock after rspec suite](bblimke/webmock#731)
As the example app_spec.rb in features/oauth2_mac_client.feature is supposed to be a stand-alone spec file, it made sense, to me, to `require "webmock/rspec"`.
Does that make any sense?
* Bump WebMock dev dependency to 3.5.0
This introduces Ruby 2.6 support and should get the test suite to run on that version of Ruby.
* Try using WebMock 3.8.3
Let's see how this goes on Travis.1 parent 66a253a commit 1a164bc
File tree
6 files changed
+8
-4
lines changed- features
- lib/rspec_api_documentation
- dsl
- spec
6 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments