diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-30 07:25:00 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-30 07:25:00 -0800 |
commit | 3bc9c35707e1c0b69b7cdffed31dadce2bfc7738 (patch) | |
tree | 8bacec39abb86258391e3eae85c4c10f429ca590 /actionpack/test/controller/flash_test.rb | |
parent | 61ad8d5c32422c523293428d25277be1759b597c (diff) | |
parent | e0326f56b41ef4e1d41fd327259873992d894736 (diff) | |
download | rails-3bc9c35707e1c0b69b7cdffed31dadce2bfc7738.tar.gz rails-3bc9c35707e1c0b69b7cdffed31dadce2bfc7738.tar.bz2 rails-3bc9c35707e1c0b69b7cdffed31dadce2bfc7738.zip |
Merge pull request #13111 from akshay-vishnoi/typo
Typo fixes [ci skip]
Diffstat (limited to 'actionpack/test/controller/flash_test.rb')
-rw-r--r-- | actionpack/test/controller/flash_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/flash_test.rb b/actionpack/test/controller/flash_test.rb index c64ffef654..9ceab91e42 100644 --- a/actionpack/test/controller/flash_test.rb +++ b/actionpack/test/controller/flash_test.rb @@ -174,12 +174,12 @@ class FlashTest < ActionController::TestCase flash.update(:foo => :foo_indeed, :bar => :bar_indeed) assert_equal(:foo_indeed, flash.discard(:foo)) # valid key passed - assert_nil flash.discard(:unknown) # non existant key passed + assert_nil flash.discard(:unknown) # non existent key passed assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.discard().to_hash) # nothing passed assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.discard(nil).to_hash) # nothing passed assert_equal(:foo_indeed, flash.keep(:foo)) # valid key passed - assert_nil flash.keep(:unknown) # non existant key passed + assert_nil flash.keep(:unknown) # non existent key passed assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.keep().to_hash) # nothing passed assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.keep(nil).to_hash) # nothing passed end |