Skip to content

Commit 88eabdf

Browse files
author
João M. D. Moura
committed
fixing tests by using a Profile intance to avoid unrelated warning
1 parent b781265 commit 88eabdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/action_controller/serialization_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def use_adapter?
406406
end
407407
}.new
408408
assert_match /adapter: false/, (capture(:stderr) {
409-
controller.get_serializer(@profile)
409+
controller.get_serializer(Profile.new)
410410
})
411411
end
412412

@@ -417,7 +417,7 @@ def use_adapter?
417417
end
418418
}.new
419419
assert_equal "", (capture(:stderr) {
420-
controller.get_serializer(@profile)
420+
controller.get_serializer(Profile.new)
421421
})
422422
end
423423
end

0 commit comments

Comments
 (0)