Skip to content

Commit 5a70069

Browse files
rubocop
1 parent 027dc94 commit 5a70069

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/shoulda/matchers/active_record/association_matcher.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
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)

0 commit comments

Comments
 (0)