Skip to content

Commit 1f16b45

Browse files
benoittgtpirj
authored andcommitted
Add a regression test for a removed method in 6.1
This method has been moved in rails/rails@3cece0b We do not include ActiveSupport::Testing::Assertion. Method was added back in rails/rails#40780, and was released in Rails 6.1.1
1 parent 3ddfb3a commit 1f16b45

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/rspec/rails/configuration_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,16 @@ def welcome(to:)
297297
it "has a default #file_fixture_path of 'spec/fixtures/files'" do
298298
expect(config.file_fixture_path).to eq("spec/fixtures/files")
299299
end
300+
301+
if Rails.version.to_f >= 6.0
302+
describe 'ActiveSupport::Testing::Assertions requirements' do
303+
it 'does not raise that "assert_nothing_raised" is undefined' do
304+
expect {
305+
assert_nothing_raised do
306+
:foo
307+
end
308+
}.to_not raise_error
309+
end
310+
end
311+
end
300312
end

0 commit comments

Comments
 (0)