File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/shoulda/matchers/active_record
spec/unit/shoulda/matchers/active_record Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1647,7 +1647,8 @@ def deprecated(deprecated = true)
16471647 @options [ :deprecated ] = deprecated
16481648 self
16491649 else
1650- raise NotImplementedError , "`deprecated` association matcher is only available on Active Record >= 8.1."
1650+ raise NotImplementedError ,
1651+ '`deprecated` association matcher is only available on Active Record >= 8.1.'
16511652 end
16521653 end
16531654
Original file line number Diff line number Diff line change 44 include UnitTests ::ApplicationConfigurationHelpers
55
66 if rails_version <= 8.1
7- context " using the deprecated matcher" do
7+ context ' using the deprecated matcher' do
88 it 'raises a NotImplementedError' do
9- message = " `deprecated` association matcher is only available on Active Record >= 8.1."
9+ message = ' `deprecated` association matcher is only available on Active Record >= 8.1.'
1010
1111 expect do
1212 expect ( having_many_children ( deprecated : false ) ) . to have_many ( :children ) . deprecated ( false )
You can’t perform that action at this time.
0 commit comments