Skip to content

Commit 0d6e57c

Browse files
committed
Make rubocop happy.
1 parent f705f0f commit 0d6e57c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.rubocop.yml

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ Style/FrozenStringLiteralComment:
1010
Style/Documentation:
1111
Enabled: false
1212

13-
Metrics/BlockLength:
14-
Exclude:
15-
- 'spec/*/*_spec.rb'
16-
1713
Style/IfUnlessModifier:
1814
Enabled: false
1915

lib/jsonapi/rspec/relationships.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ module Relationships
1515
end
1616

1717
failure_message do |actual|
18-
if !(actual['relationships'] || {}).key?(rel.to_s)
19-
"expected #{actual} to have relationship #{rel}"
20-
else
18+
if (actual['relationships'] || {}).key?(rel.to_s)
2119
"expected #{actual['relationships'][rel.to_s]} " \
2220
"to have data #{@data_val}"
21+
else
22+
"expected #{actual} to have relationship #{rel}"
2323
end
2424
end
2525
end

0 commit comments

Comments
 (0)