We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaa6528 + ec9700a commit 3d62fc0Copy full SHA for 3d62fc0
railties/test/configuration/middleware_stack_proxy_test.rb
@@ -63,18 +63,16 @@ def test_order
63
@stack.swap :foo
64
@stack.delete :foo
65
66
- mock = Minitest::Mock.new
67
- mock.expect :swap, nil, [:foo]
68
- mock.expect :delete, nil, [:foo]
69
-
70
- @stack.merge_into mock
71
- mock.verify
+ assert_playback([:swap, :delete], :foo)
72
end
73
74
private
75
- def assert_playback(msg_name, args)
+ def assert_playback(msg_names, args)
+ self.assertions += 1
76
mock = Minitest::Mock.new
77
- mock.expect msg_name, nil, [args]
+ Array(msg_names).each do |msg_name|
+ mock.expect msg_name, nil, [args]
+ end
78
@stack.merge_into(mock)
79
mock.verify
80
0 commit comments