Vipul A M
|
6eced6a1fe
|
Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards.
|
2015-02-03 20:51:40 +05:30 |
|
Arun Agrawal
|
9ae210ba09
|
Build fix when running in isolation
`Computer` class needs to be require
See #17217 for more details
|
2014-11-14 10:24:11 +01:00 |
|
Carlos Antonio da Silva
|
38fcee3871
|
Fix test for cache_key + touched
Ensure the child can actually be touched. The `Bulb` model has no
timestamp column, thus trying to touch it would return `nil`.
|
2014-01-16 09:05:55 -02:00 |
|
Kuldeep Aggarwal
|
ff4673be52
|
set encoding UTF-8 for accepting multibyte character
|
2013-12-19 11:00:38 +05:30 |
|
rono23
|
ee738f9604
|
Fix to_param when attribute has multibyte character
|
2013-12-19 05:29:16 +09:00 |
|
Kuldeep Aggarwal
|
a5d588875f
|
added one test case and example for ActiveRecord::Base.to_param method
|
2013-11-15 20:05:17 +05:30 |
|
Javan Makhmali
|
633100b9e5
|
Addendum to #12891
* Fix incorrectly named tests
* Restore Object#to_param behavior
* Ensure param is derived from a squished and truncated string
|
2013-11-14 15:35:53 -05:00 |
|
Javan Makhmali
|
547999df25
|
Add AR::Base.to_param for convenient "pretty" URLs derived from a model's attribute or method.
|
2013-11-14 13:38:08 -05:00 |
|
Carlos Antonio da Silva
|
92c6305954
|
Respect cache timestamp format when giving timestamps to #cache_key
|
2013-11-04 13:11:51 -02:00 |
|
David Heinemeier Hansson
|
e94e97ca79
|
Extend ActiveRecord::Base#cache_key to take an optional list of timestamp attributes of which the highest will be used.
|
2013-11-02 16:05:19 -07:00 |
|
Yves Senn
|
abe91cb3bf
|
prevent global timezone state from leaking out of test cases.
|
2013-10-25 14:40:57 +02:00 |
|
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 |
|