mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
fixing tests by using a Profile intance to avoid unrelated warning
This commit is contained in:
parent
b78126565c
commit
88eabdf6ac
@ -406,7 +406,7 @@ module ActionController
|
|||||||
end
|
end
|
||||||
}.new
|
}.new
|
||||||
assert_match /adapter: false/, (capture(:stderr) {
|
assert_match /adapter: false/, (capture(:stderr) {
|
||||||
controller.get_serializer(@profile)
|
controller.get_serializer(Profile.new)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -417,7 +417,7 @@ module ActionController
|
|||||||
end
|
end
|
||||||
}.new
|
}.new
|
||||||
assert_equal "", (capture(:stderr) {
|
assert_equal "", (capture(:stderr) {
|
||||||
controller.get_serializer(@profile)
|
controller.get_serializer(Profile.new)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user