Skip to content

Commit 7be17da

Browse files
committed
Some jsonapi libs leave IDs as nils...
1 parent 5756a7a commit 7be17da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

β€Žlib/jsonapi/rspec/id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module RSpec
33
module Id
44
::RSpec::Matchers.define :have_id do |expected|
55
match do |actual|
6-
JSONAPI::RSpec.as_indifferent_hash(actual)['id'] == expected.to_s
6+
JSONAPI::RSpec.as_indifferent_hash(actual)['id'] == expected
77
end
88
end
99
end

0 commit comments

Comments
 (0)