class Quails::Configuration::MiddlewareStackProxyTest
Public Instance Methods
setup()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 12 def setup @stack = MiddlewareStackProxy.new end
test_order()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 41 def test_order @stack.swap :foo @stack.delete :foo mock = Minitest::Mock.new mock.expect :send, nil, [:swap, :foo] mock.expect :send, nil, [:delete, :foo] @stack.merge_into mock mock.verify end
test_playback_delete()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 36 def test_playback_delete @stack.delete :foo assert_playback :delete, :foo end
test_playback_insert_after()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 21 def test_playback_insert_after @stack.insert_after :foo assert_playback :insert_after, :foo end
test_playback_insert_before()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 16 def test_playback_insert_before @stack.insert_before :foo assert_playback :insert_before, :foo end
test_playback_swap()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 26 def test_playback_swap @stack.swap :foo assert_playback :swap, :foo end
test_playback_use()
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 31 def test_playback_use @stack.use :foo assert_playback :use, :foo end
Private Instance Methods
assert_playback(msg_name, args)
click to toggle source
# File railties/test/configuration/middleware_stack_proxy_test.rb, line 55 def assert_playback(msg_name, args) mock = Minitest::Mock.new mock.expect :send, nil, [msg_name, args] @stack.merge_into(mock) mock.verify end