Skip to content

Commit

Permalink
Add support for rspec 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
doxavore committed Feb 29, 2024
1 parent 78285a6 commit 258d4ff
Show file tree
Hide file tree
Showing 11 changed files with 170 additions and 34 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rspec-${{ matrix.gemfile }}.gemfile
steps:
Expand All @@ -63,7 +64,7 @@ jobs:
bundle exec rspec \
--format json --out tmp/rspec.json \
--format documentation && bin/check_num_tests.rb
if: ${{ matrix.ruby == 3.1 && matrix.gemfile == 3.12 }}
if: ${{ matrix.ruby == 3.1 && matrix.gemfile == 3.13 }}
env:
RWX_ACCESS_TOKEN: ${{ secrets.RWX_ACCESS_TOKEN }}
timeout-minutes: 5
Expand All @@ -72,7 +73,7 @@ jobs:
bundle exec rspec \
--format json --out tmp/rspec.json \
--format documentation && bin/check_num_tests.rb
if: ${{ matrix.ruby != 3.1 || matrix.gemfile != 3.12 }}
if: ${{ matrix.ruby != 3.1 || matrix.gemfile != 3.13 }}
timeout-minutes: 5
- name: Upload Coverage
if: always()
Expand Down
40 changes: 21 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PATH
remote: .
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.13.0)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -64,29 +64,29 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.3)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.4)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.7)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (~> 3.13.0)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.12.2)
rubocop (1.60.2)
rspec-support (3.13.1)
rubocop (1.61.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -97,8 +97,9 @@ GEM
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.0)
parser (>= 3.3.0.4)
prism (>= 0.24.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
Expand All @@ -112,7 +113,7 @@ GEM
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-lsp (0.14.1)
ruby-lsp (0.14.3)
language_server-protocol (~> 3.17.0)
prism (>= 0.22.0, < 0.25)
sorbet-runtime (>= 0.5.10782)
Expand All @@ -128,7 +129,7 @@ GEM
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sorbet-runtime (0.5.11262)
sorbet-runtime (0.5.11279)
standard (1.34.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand All @@ -149,10 +150,11 @@ GEM
websocket (1.2.10)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.34)
yard (0.9.35)

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

Expand Down
4 changes: 2 additions & 2 deletions bin/generate-abq-test-output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
`bundle exec rspec --dry-run --format json | jq '.examples | length' > spec/NUM_TESTS`

# symlink the results for the latest gemfile to the results for the default gemfile
Dir['spec/**/*-rspec-3.12.gemfile.snap'].each do |path|
Dir['spec/**/*-rspec-3.13.gemfile.snap'].each do |path|
Dir.chdir(File.dirname(path)) do
source = File.basename(path)
target = source.sub('rspec-3.12.gemfile', 'Gemfile')
target = source.sub('rspec-3.13.gemfile', 'Gemfile')
FileUtils.rm(target) if File.exist? target
FileUtils.ln_s(source, target)
end
Expand Down
5 changes: 3 additions & 2 deletions gemfiles/rspec-3.10.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PATH
remote: ..
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.13.0)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
regexp_parser (2.9.0)
Expand Down Expand Up @@ -95,6 +95,7 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

Expand Down
5 changes: 3 additions & 2 deletions gemfiles/rspec-3.11.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PATH
remote: ..
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.13.0)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
regexp_parser (2.9.0)
Expand Down Expand Up @@ -95,6 +95,7 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

Expand Down
5 changes: 3 additions & 2 deletions gemfiles/rspec-3.12.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PATH
remote: ..
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.13.0)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
regexp_parser (2.9.0)
Expand Down Expand Up @@ -95,6 +95,7 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

Expand Down
10 changes: 10 additions & 0 deletions gemfiles/rspec-3.13.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Specify your gem's dependencies in rspec-abq.gemspec
gemspec(path: "..")

# and the specific patch version of rspec
gem "rspec", "~> 3.13", "< 3.14"
gem "rspec-snapshot", github: "rwx-research/rspec-snapshot"
118 changes: 118 additions & 0 deletions gemfiles/rspec-3.13.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
GIT
remote: https://github.com/rwx-research/rspec-snapshot.git
revision: 77b3098b46190a291b32b52686d07c96cced18d5
specs:
rspec-snapshot (2.0.1)
awesome_print (> 1.0.0)
rspec (> 3.0.0)

PATH
remote: ..
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
awesome_print (1.9.2)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
capybara-inline-screenshot (2.2.1)
capybara-screenshot
capybara-screenshot (1.0.26)
capybara (>= 1.0, < 4)
launchy
coderay (1.1.3)
diff-lcs (1.5.1)
docile (1.4.0)
launchy (2.5.2)
addressable (~> 2.8)
matrix (0.4.2)
method_source (1.0.0)
mini_mime (1.1.5)
nio4r (2.7.0)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
racc (~> 1.4)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (5.0.4)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-retry (0.6.2)
rspec-core (> 3.3)
rspec-support (3.13.1)
rubyzip (2.3.2)
selenium-webdriver (4.10.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
webdrivers (5.3.1)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0, < 4.11)
websocket (1.2.10)
xpath (3.2.0)
nokogiri (~> 1.8)

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
capybara (~> 3.40)
capybara-inline-screenshot (~> 2.2.1)
nokogiri (~> 1.16)
pry (~> 0.14.1)
puma (~> 6.4)
rack (~> 2.2)
rspec (~> 3.13, < 3.14)
rspec-abq!
rspec-retry (~> 0.6.2)
rspec-snapshot!
selenium-webdriver (~> 4.10.0)
simplecov (~> 0.22.0)
webdrivers (~> 5.3)

BUNDLED WITH
2.3.7
5 changes: 3 additions & 2 deletions gemfiles/rspec-3.8.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PATH
remote: ..
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.13.0)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
regexp_parser (2.9.0)
Expand Down Expand Up @@ -95,6 +95,7 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

Expand Down
5 changes: 3 additions & 2 deletions gemfiles/rspec-3.9.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PATH
remote: ..
specs:
rspec-abq (1.1.5)
rspec-core (>= 3.8.0, < 3.13.0)
rspec-core (>= 3.8.0, < 3.14.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rack (2.2.8.1)
rack-test (2.1.0)
rack (>= 1.3)
regexp_parser (2.9.0)
Expand Down Expand Up @@ -95,6 +95,7 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-linux

Expand Down
Loading

0 comments on commit 258d4ff

Please sign in to comment.