remove unncessary is_a?(Hash) check

This commit is contained in:
Tee Parham
2012-06-12 10:38:32 -07:00
parent d956507482
commit c898e3daf9
2 changed files with 2 additions and 4 deletions

View File

@@ -408,7 +408,7 @@ class SerializerTest < ActiveModel::TestCase
hash = {:value => "something"}
array = [hash]
serializer = array.active_model_serializer.new(array, :root => :items)
assert_equal({ :items => [ hash ]}, serializer.as_json)
assert_equal({ :items => [ hash.as_json ]}, serializer.as_json)
end
class CustomBlog < Blog