diff options
author | David Chelimsky <dchelimsky@gmail.com> | 2010-04-29 08:18:47 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-03 13:46:12 +0200 |
commit | 849ab9294244ac94f9ce4621c8cd325a2992a382 (patch) | |
tree | 5d3059b82714c1bb14119c6e1838ea9d2ee8c071 /actionpack/lib | |
parent | 36fc489aa3086e384db9f13390f01246d006e47e (diff) | |
download | rails-849ab9294244ac94f9ce4621c8cd325a2992a382.tar.gz rails-849ab9294244ac94f9ce4621c8cd325a2992a382.tar.bz2 rails-849ab9294244ac94f9ce4621c8cd325a2992a382.zip |
Eliminate false positives when passing symbols to assert_template
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 2010d8573c..34499fa784 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -57,7 +57,8 @@ module ActionController validate_request! case options - when NilClass, String + when NilClass, String, Symbol + options = options.to_s if Symbol === options rendered = @templates msg = build_message(message, "expecting <?> but rendering with <?>", |