aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/flash_hash_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-2/+2
|
* Add three new rubocop rulesRafael Mendonça França2016-08-161-14/+14
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* remove redundant curlies from hash argumentsXavier Noria2016-08-061-3/+3
|
* applies new string literal convention in actionpack/testXavier Noria2016-08-061-72/+72
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Make flash messages cookie compatible with Rails 4Rafael Mendonça França2016-05-061-2/+2
| | | | | | | | In #18721 we removed the discard key from the session hash used to flash messages and that broke compatibility with Rails 4 applications because they try to map in the discarded flash messages and it returns nil. Fixes #24726.
* Migrate old flash behaviourSamuel Cochran2015-01-301-6/+7
|
* Discard from flash before persisting in sessionSamuel Cochran2015-01-291-7/+9
|
* Make FlashHash#key? work with symbol and stringRafael Mendonça França2014-11-111-0/+9
| | | | Closes #17586
* Convert FlashHash in a Hash with indifferent accessGuillermo Iguaran2014-02-111-0/+10
|
* Store FlashHashes in the session as plain hashes rather than custom objects ↵James Coglan2012-11-091-0/+21
| | | | | | | | | | | | | | | | | | | | with unstable class names and instance variables. Refactor FlashHash to take values for its ivars in the constructor, to pretty up FlashHash.from_session_value. Remove stale comment on FlashHash: it is no longer Marshaled in the session so we can change its implementation. Remove blank lines I introduced in controller/test_case.rb. Unit tests for FlashHash#to_session_value. Put in a compatibility layer to accept FlashHash serializations from Rails 3.0+. Test that Rails 3.2 session flashes are correctly converted to the new format. Remove code path for processing Rails 3.0 FlashHashes since they can no longer deserialize. Fix session['flash'] deletion condition: it will never be empty?, it will either be nil or a hash with 'discard' and 'flashes' keys.
* mutations on the underlying hash should also mutate the discard setAaron Patterson2011-12-281-0/+19
|
* mutations can't be done without the consent of our proxy object. ThisAaron Patterson2011-12-281-0/+62
| | | | is one benefit of choosing composition over inheritance.
* many args does not make sense with the current implementation because of how ↵Aaron Patterson2011-04-061-10/+0
| | | | `use` works
* getting the flash hash under testAaron Patterson2011-04-061-0/+100