Skip to content

Commit c713856

Browse files
committed
Make #have_relationships accept symbols
1 parent ff4a930 commit c713856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/jsonapi/rspec/relationships.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module Relationships
2626
match do |actual|
2727
return false unless actual.key?('relationships')
2828

29-
rels.all? { |rel| actual['relationships'].key?(rel) }
29+
rels.all? { |rel| actual['relationships'].key?(rel.to_s) }
3030
end
3131
end
3232
end

0 commit comments

Comments
 (0)