mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
assert_include is not available before 1.9
This commit is contained in:
parent
77b873a9a4
commit
b813646076
@ -446,8 +446,8 @@ class SerializerTest < ActiveModel::TestCase
|
||||
|
||||
as_json = serializer.as_json
|
||||
assert_equal 2, as_json.size
|
||||
assert_include(as_json, { :title => "Post1" })
|
||||
assert_include(as_json, { :title => "Post2" })
|
||||
assert as_json.include?({ :title => "Post1" })
|
||||
assert as_json.include?({ :title => "Post2" })
|
||||
end
|
||||
|
||||
class CustomBlog < Blog
|
||||
|
||||
Loading…
Reference in New Issue
Block a user