We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f705f0f commit 0d6e57cCopy full SHA for 0d6e57c
.rubocop.yml
@@ -10,10 +10,6 @@ Style/FrozenStringLiteralComment:
10
Style/Documentation:
11
Enabled: false
12
13
-Metrics/BlockLength:
14
- Exclude:
15
- - 'spec/*/*_spec.rb'
16
-
17
Style/IfUnlessModifier:
18
19
lib/jsonapi/rspec/relationships.rb
@@ -15,11 +15,11 @@ module Relationships
end
failure_message do |actual|
- if !(actual['relationships'] || {}).key?(rel.to_s)
- "expected #{actual} to have relationship #{rel}"
20
- else
+ if (actual['relationships'] || {}).key?(rel.to_s)
21
"expected #{actual['relationships'][rel.to_s]} " \
22
"to have data #{@data_val}"
+ else
+ "expected #{actual} to have relationship #{rel}"
23
24
25
0 commit comments