Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dont' check for any order in hash since we aren't sorting it and this…

… is determinated only by the used interpreter
  • Loading branch information...
commit 99e33c03b7ccad3254c787a19bc7082e23dbcd27 1 parent 131a2f0
@guilleiguaran guilleiguaran authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 activemodel/test/cases/serializers/json_serialization_test.rb
View
11 activemodel/test/cases/serializers/json_serialization_test.rb
@@ -155,17 +155,6 @@ def @contact.favorite_quote; "Constraints are liberating"; end
end
end
- test "as_json should keep the default order in the hash according to used engine" do
- json = @contact.as_json
-
- # Check for original order only on MRI and sort for other implementations
- if RUBY_ENGINE == 'ruby'
- assert_equal %w(name age created_at awesome preferences), json.keys
- else
- assert_equal %w(age awesome created_at name preferences), json.keys.sort
- end
- end
-
test "from_json should work without a root (class attribute)" do
json = @contact.to_json
result = Contact.new.from_json(json)
Please sign in to comment.
Something went wrong with that request. Please try again.