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

16 commits

Author SHA1 Message Date
Guo Xiang Tan
3baace687c Use teardown helper method.
Follow-Up to https://github.com/rails/rails/pull/14348

Ensure that SQLCounter.clear_log is called after each test.

This is a step to prevent side effects when running tests. This will allow us to run them in random order.
2014-03-14 20:48:59 -07:00
Yves Senn
abe91cb3bf prevent global timezone state from leaking out of test cases. 2013-10-25 14:40:57 +02:00
Vipul A M
680144d230 Remove unnecessary loop 2013-09-13 03:32:34 +05:30
Sam
975c9c9d44 Perf: avoid dupes add fallback logic for coders 2013-09-11 11:06:07 +10:00
kennyj
6c74825beb Remove instance level serialized_attributes setting was deprecated. 2013-06-02 10:26:04 +09:00
Max Edmands
c3b46d63b9 Fix typo in serialized_attribute_test. [ci skip] 2013-04-28 08:47:55 -07:00
kennyj
8c8d34fa55 Added testcase for #10067 and a CHANGELOG entry about this change. 2013-04-25 03:01:19 +09:00
Yves Senn
fa18c61153 test case for serialize default values.
Closes #9110
2013-03-07 17:26:35 +01:00
Rafael Mendonça França
f2e0925ab7 Serialized attribute can be serialized in an integer column
Fix #8575
2012-12-21 14:41:13 -03:00
itzki
7efcc5d72f Fix decorating columns for serialized attributes 2012-12-10 14:44:24 +09:00
Nikita Afanasenko
e7e59a75aa Fix attributes_before_type_cast for serialised attributes.
Public method `attributes_before_type_cast` used to return internal AR structure (ActiveRecord::AttributeMethods::Serialization::Attribute), patch fixes this. Now behaves like `read_attribute_before_type_cast` and returns unserialised values.
2012-10-31 13:16:44 +04:00
Rafael Mendonça França
b4615ff979 Add test to ensure that save will raise SerializationTypeMismatch if the
serialized attribute value is not from the same class
2012-08-26 03:56:19 -03:00
Rafael Mendonça França
a6e95c93ca We don't need this reload 2012-08-26 03:56:19 -03:00
Rafael Mendonça França
b26f7a2517 Use the Topic class in the attribute serialized tests 2012-08-26 03:56:19 -03:00
Rafael Mendonça França
4f6120e0d5 Use teardown hook to return the initial state of the object 2012-08-26 03:56:18 -03:00
Rafael Mendonça França
21be1808a0 Move the serialized attribute tests to their own file 2012-08-26 03:56:18 -03:00