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

3 commits

Author SHA1 Message Date
Neeraj Singh
d52052d027 make test order independent by resetting timezone 2013-07-28 14:58:19 +05:30
Takehiro Adachi
ec0566cc91 Add test for AR::Base#to_param
According to the doc of `AR::Base#to_param`(
https://github.com/rails/rails/blob/04cda1848cb847c2bdad0bfc12160dc8d554
7775/activerecord/lib/active_record/integration.rb#L18 ), it returns
`nil` if the record is not persisted.
2013-05-02 22:16:51 +09:00
Takehiro Adachi
a160c88172 Extract tests code out from AR's base_test.rb to integration_test.rb
`AR::Base#to_param` and `AR::Base#cache_key` is defined at
active_record/integration.rb, so tests for those methods should be at
integration_test.rb
2013-05-02 11:01:12 +09:00