Skip to content

Commit e5ab27b

Browse files
authored
Fix CI (#217)
A recent change in `rspec-expectations` has caused the tests to start failing in CI. It seems that `an_array_matching` is no longer an AliasedMatcher but is a direct instance of our MatchArray class. I am not sure why this happens, but I do know that tests start failing at 3.12.4. Rolling back to 3.12.3 fixes the error temporarily.
1 parent d144751 commit e5ab27b

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

Appraisals

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ appraisals = {
4141
proc do |with_rails|
4242
version = [">= 3.10", "< 4"]
4343

44-
gem "rspec", *version
44+
# gem "rspec", *version
45+
46+
gem "rspec", "3.12.0"
47+
gem "rspec-core", "3.12.0"
48+
gem "rspec-expectations", "3.12.3"
49+
gem "rspec-mocks", "3.12.0"
50+
gem "rspec-support", "3.12.0"
4551

4652
gem "rspec-rails" if with_rails
4753
end

gemfiles/no_rails_rspec_gte_3_10.gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ gem "syntax_tree"
1414
gem "syntax_tree-haml"
1515
gem "syntax_tree-rbs"
1616
gem "warnings_logger"
17-
gem "rspec", ">= 3.10", "< 4"
17+
gem "rspec", "3.12.0"
18+
gem "rspec-core", "3.12.0"
19+
gem "rspec-expectations", "3.12.3"
20+
gem "rspec-mocks", "3.12.0"
21+
gem "rspec-support", "3.12.0"
1822

1923
gemspec path: "../"

gemfiles/rails_6_0_rspec_gte_3_10.gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 6.0.0"
2222
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
23-
gem "rspec", ">= 3.10", "< 4"
23+
gem "rspec", "3.12.0"
24+
gem "rspec-core", "3.12.0"
25+
gem "rspec-expectations", "3.12.3"
26+
gem "rspec-mocks", "3.12.0"
27+
gem "rspec-support", "3.12.0"
2428
gem "rspec-rails"
2529

2630
gemspec path: "../"

gemfiles/rails_6_1_rspec_gte_3_10.gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 6.1.0"
2222
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
23-
gem "rspec", ">= 3.10", "< 4"
23+
gem "rspec", "3.12.0"
24+
gem "rspec-core", "3.12.0"
25+
gem "rspec-expectations", "3.12.3"
26+
gem "rspec-mocks", "3.12.0"
27+
gem "rspec-support", "3.12.0"
2428
gem "rspec-rails"
2529

2630
gemspec path: "../"

gemfiles/rails_7_0_rspec_gte_3_10.gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 7.0.0"
2222
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
23-
gem "rspec", ">= 3.10", "< 4"
23+
gem "rspec", "3.12.0"
24+
gem "rspec-core", "3.12.0"
25+
gem "rspec-expectations", "3.12.3"
26+
gem "rspec-mocks", "3.12.0"
27+
gem "rspec-support", "3.12.0"
2428
gem "rspec-rails"
2529

2630
gemspec path: "../"

0 commit comments

Comments
 (0)