Skip to content

Commit

Permalink
fix(base_spec): use JSON::Any comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
caspiano committed Aug 21, 2021
1 parent 365a07b commit 97c7867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/base_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe RethinkORM::Base do
it "should support serialisation" do
base = BasicModel.create(name: "joe")
base_id = base.id
base.to_json.should eq ({name: "joe", age: 0, hash: {} of Nil => Nil, id: base_id}.to_json)
JSON.parse(base.to_json).should eq JSON.parse({name: "joe", age: 0, hash: {} of Nil => Nil, id: base_id}.to_json)

base.destroy
end
Expand Down

0 comments on commit 97c7867

Please sign in to comment.