Skip to content

Commit 8486008

Browse files
committed
Don't convert actual id in have_id matcher
1 parent 2162b92 commit 8486008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/rspec/id.rb

+1-1
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'].to_s == expected.to_s
6+
JSONAPI::RSpec.as_indifferent_hash(actual)['id'] == expected.to_s
77
end
88
end
99
end

0 commit comments

Comments
 (0)