Skip to content

Commit 0db0722

Browse files
committed
ci: use Rails 7.1 in JRuby tests
1 parent d933130 commit 0db0722

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gemfiles/jruby.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ source "https://rubygems.org"
33
gem "activerecord-jdbcsqlite3-adapter"
44
gem "jdbc-sqlite3"
55

6-
gem "rails", "~> 7.0"
6+
gem "rails", "~> 7.1.0"
77

88
gemspec path: ".."

test/action_policy/test_helper_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ def test_assert_have_authorized_scope_raised_when_scope_options_mismatch
174174

175175
assert_match(
176176
Regexp.new("Expected a scoping named :default for :data type " \
177-
"with scope options {:with_admins=>false} " \
177+
"with scope options {:?with_admins(=>|: )false} " \
178178
"and without context from UserPolicy to have been applied"),
179179
error.message
180180
)
181181
assert_match(
182182
Regexp.new("Registered scopings: .*TestHelperTest::CustomPolicy :default " \
183-
"for :data with scope options {:with_admins=>true}"),
183+
"for :data with scope options {:?with_admins(=>|: )true}"),
184184
error.message
185185
)
186186
end
@@ -194,7 +194,7 @@ def test_assert_have_authorized_scope_raised_when_context_mismatch
194194

195195
assert_match(
196196
Regexp.new("Expected a scoping named :all for :data type without scope options " \
197-
"and with context: {:all_users=>false} from TestHelperTest::CustomPolicy to have been applied"),
197+
"and with context: {:?all_users(=>|: )false} from TestHelperTest::CustomPolicy to have been applied"),
198198
error.message
199199
)
200200
end

0 commit comments

Comments
 (0)