From 8b9bff95579498a0389d7634cafbcee37787c15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 14 Jan 2010 20:02:42 +0100 Subject: Small tweaks in ActionController subscriber messages format. --- actionpack/test/controller/subscriber_test.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/subscriber_test.rb b/actionpack/test/controller/subscriber_test.rb index b2888dc4c2..ef1a325799 100644 --- a/actionpack/test/controller/subscriber_test.rb +++ b/actionpack/test/controller/subscriber_test.rb @@ -70,6 +70,13 @@ module ActionControllerSubscriberTest assert_match /Processed\sAnother::SubscribersController#show/, logs[0] end + def test_process_action_formats + get :show + wait + assert_equal 2, logs.size + assert_match /text\/html/, logs[0] + end + def test_process_action_without_parameters get :show wait @@ -116,7 +123,7 @@ module ActionControllerSubscriberTest wait assert_equal 3, logs.size - assert_equal "Redirected to http://foo.bar/ with status 302", logs[0] + assert_equal "Redirected to http://foo.bar/", logs[0] end def test_send_data -- cgit v1.2.3