Permalink
Browse files

Using JSON.parse for the #to_json spec, so it passes on 1.8.7 too

  • Loading branch information...
1 parent c6e9b02 commit a1578f345dd02088668d9c79dd207f32d69e6541 @cassiomarques cassiomarques committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/enumerate_it_spec.rb
@@ -240,7 +240,7 @@ def self.scope(name, whatever); end
it "give translated values when available" do
I18n.locale = :pt
- TestEnumerationWithoutArray.to_json.should == '[{"value":"1","label":"Primeiro Valor"},{"value":"2","label":"Value Two"}]'
+ JSON.parse(TestEnumerationWithoutArray.to_json).should == JSON.parse('[{"value":"1","label":"Primeiro Valor"},{"value":"2","label":"Value Two"}]')
end
end

0 comments on commit a1578f3

Please sign in to comment.