aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/multiparameter_attributes_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fixes multiparameter attributes conversion with time_zone_aware_attributes ↵alpaca-tc2016-07-191-0/+14
| | | | and invalid params
* Merge pull request #25372 from kamipo/remove_assert_date_from_dbSean Griffin2016-06-131-1/+1
|\ | | | | Remove unnecessary `assert_date_from_db`
| * Remove unnecessary `assert_date_from_db`Ryuta Kamizono2016-06-121-1/+1
| | | | | | | | | | | | `assert_date_from_db` was added at 6a2104d for SQL Server. But latest sqlserver adapter work to pass expected behavior since 8e4624b.
* | Remove outdated comments [ci skip]Ryuta Kamizono2016-06-121-12/+0
|/ | | | | These comments were added at dd257a3ccb30ab181cd48d3d81bc7f23bb45f36f but outdated since #2086.
* Push multi-parameter assignement into the typesSean Griffin2015-02-071-0/+8
| | | | | | | | | | | | This allows us to remove `Type::Value#klass`, as it was only used for multi-parameter assignment to reach into the types internals. The relevant type objects now accept a hash in addition to their previous accepted arguments to `type_cast_from_user`. This required minor modifications to the tests, since previously they were relying on the fact that mulit-parameter assignement was reaching into the internals of time zone aware attributes. In reaility, changing those properties at runtime wouldn't change the accessor methods for all other forms of assignment.
* Time columns should support time zone aware attributesSean Griffin2015-01-151-2/+2
| | | | | | The types that are affected by `time_zone_aware_attributes` (which is on by default) have been made configurable, in case this is a breaking change for existing applications.
* Remove dead test code for unsupported adaptersSean Griffin2014-05-171-2/+2
|
* Don't skip tests if we don't need to.Rafael Mendonça França2013-11-081-6/+6
| | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed.
* prevent global timezone state from leaking out of test cases.Yves Senn2013-10-251-82/+78
|
* reset default timezone and make test order independentNeeraj Singh2013-07-281-0/+4
|
* Remove unneeded requireRafael Mendonça França2012-10-061-1/+0
|
* Move multiparameter attributes related tests to its own fileRafael Mendonça França2012-10-061-0/+351