aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-14 20:02:42 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-15 12:24:31 +0100
commit8b9bff95579498a0389d7634cafbcee37787c15f (patch)
tree7eb57bcec1072a383ccd1b06f9ac9165777c6775 /actionpack/test
parent8c8942ed4f2da52aa42ccd46560acb0b5fd37cb8 (diff)
downloadrails-8b9bff95579498a0389d7634cafbcee37787c15f.tar.gz
rails-8b9bff95579498a0389d7634cafbcee37787c15f.tar.bz2
rails-8b9bff95579498a0389d7634cafbcee37787c15f.zip
Small tweaks in ActionController subscriber messages format.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/subscriber_test.rb9
1 files changed, 8 insertions, 1 deletions
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