diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-08-29 09:54:27 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-16 23:58:21 -0500 |
commit | 8cfe95d7194a1118f9950fe1d81a4e915cb929d6 (patch) | |
tree | 2d71aefbbda3e608627776693a0c915df58dbe20 /actionpack/test/controller/parameters | |
parent | 978c568a7bffe354180aaefa471092182fed1015 (diff) | |
download | rails-8cfe95d7194a1118f9950fe1d81a4e915cb929d6.tar.gz rails-8cfe95d7194a1118f9950fe1d81a4e915cb929d6.tar.bz2 rails-8cfe95d7194a1118f9950fe1d81a4e915cb929d6.zip |
Don't use assert_nothing_raised when assert_equal is used
Diffstat (limited to 'actionpack/test/controller/parameters')
-rw-r--r-- | actionpack/test/controller/parameters/parameters_taint_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/test/controller/parameters/parameters_taint_test.rb b/actionpack/test/controller/parameters/parameters_taint_test.rb index a99a537b37..9e8444c897 100644 --- a/actionpack/test/controller/parameters/parameters_taint_test.rb +++ b/actionpack/test/controller/parameters/parameters_taint_test.rb @@ -16,10 +16,8 @@ class ParametersTaintTest < ActiveSupport::TestCase end test "fetch doesnt raise ParameterMissing exception if there is a default" do - assert_nothing_raised do - assert_equal "monkey", @params.fetch(:foo, "monkey") - assert_equal "monkey", @params.fetch(:foo) { "monkey" } - end + assert_equal "monkey", @params.fetch(:foo, "monkey") + assert_equal "monkey", @params.fetch(:foo) { "monkey" } end test "permitted is sticky on accessors" do |