diff options
author | Roberto Soares <roberto.tech@gmail.com> | 2012-11-25 23:39:08 -0300 |
---|---|---|
committer | Roberto Soares <roberto.tech@gmail.com> | 2012-11-25 23:39:08 -0300 |
commit | 3f2c011d319de8f188b98c286db3786990856de0 (patch) | |
tree | 6759f589a606d850e60a6b894f0e2ed1d3aead64 /actionpack/test | |
parent | 4d0dc53249aefc75a7d258e256b268198a7dd7a1 (diff) | |
download | rails-3f2c011d319de8f188b98c286db3786990856de0.tar.gz rails-3f2c011d319de8f188b98c286db3786990856de0.tar.bz2 rails-3f2c011d319de8f188b98c286db3786990856de0.zip |
assert_template: validating option keys
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/action_pack_assertions_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb index 5f559e5b00..b94f45bfe7 100644 --- a/actionpack/test/controller/action_pack_assertions_test.rb +++ b/actionpack/test/controller/action_pack_assertions_test.rb @@ -430,6 +430,12 @@ end class AssertTemplateTest < ActionController::TestCase tests ActionPackAssertionsController + def test_with_invalid_hash_keys_raises_argument_error + assert_raise(ArgumentError) do + assert_template foo: "bar" + end + end + def test_with_partial get :partial assert_template :partial => '_partial' |