1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

12 commits

Author SHA1 Message Date
alpaca-tc
780535017a Fixes multiparameter attributes conversion with time_zone_aware_attributes and invalid params 2016-07-19 22:35:45 +09:00
Sean Griffin
2806203f10 Merge pull request #25372 from kamipo/remove_assert_date_from_db
Remove unnecessary `assert_date_from_db`
2016-06-13 10:53:15 -04:00
Ryuta Kamizono
4e545d0e43 Remove unnecessary assert_date_from_db
`assert_date_from_db` was added at 6a2104d for SQL Server.
But latest sqlserver adapter work to pass expected behavior since
8e4624b.
2016-06-12 20:54:03 +09:00
Ryuta Kamizono
5deb44d6ea Remove outdated comments [ci skip]
These comments were added at dd257a3ccb
but outdated since #2086.
2016-06-12 20:30:10 +09:00
Sean Griffin
631707a572 Push multi-parameter assignement into the types
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.
2015-02-07 13:52:23 -07:00
Sean Griffin
5cd3bbbb83 Time columns should support time zone aware attributes
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.
2015-01-15 08:04:43 -07:00
Sean Griffin
8df8334327 Remove dead test code for unsupported adapters 2014-05-17 13:24:25 -06:00
Rafael Mendonça França
bd09afb5fb Don't skip tests if we don't need to.
We can conditional define the tests depending on the adapter or
connection.

Lets keep the skip for fail tests that need to be fixed.
2013-11-08 13:59:07 -02:00
Yves Senn
abe91cb3bf prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
Neeraj Singh
5e68e42f62 reset default timezone and make test order independent 2013-07-28 16:08:01 +05:30
Rafael Mendonça França
86b13b6f54 Remove unneeded require 2012-10-06 19:31:57 -03:00
Rafael Mendonça França
5b91aa0018 Move multiparameter attributes related tests to its own file 2012-10-06 19:29:17 -03:00