aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/naming_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f"Rafael Mendonça França2019-08-021-8/+8
| | | | This reverts commit dd779c9686f49f5ed6dda8ad5a1cb3b0788e1dd4.
* No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29fAkira Matsuda2019-08-021-8/+8
|
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-1/+1
| | | | Follow up of #32605.
* Use frozen string literal in activemodel/Kir Shatrov2017-07-161-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* applies new string literal convention in activemodel/testXavier Noria2016-08-061-47/+47
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Delegate #model_name method to self.classYuki Nishijima2014-06-221-0/+6
|
* Small typos here and there.Vipul A M2013-03-151-1/+1
|
* Adding the route_key and param_key testsAttila Domokos2013-01-221-0/+8
| | | This way all the tests are testing the same fields
* Remove ActiveModel::Naming#partial_pathGrant Hutchins2012-03-101-24/+0
| | | It was deprecated in 3.2
* Use ActiveModel::TestCase instead of Test::Unit:TestCaseRafael Mendonça França2012-01-061-2/+2
|
* Improve cache on route_key lookup.José Valim2011-12-081-0/+8
|
* ActiveModel::Name#i18n_key: Fix doc and add testsMarc-Andre Lafortune2011-12-051-0/+20
|
* Warning removed unused variableArun Agrawal2011-11-261-1/+1
|
* make ActiveModel::Name fail gracefully with anonymous classesJakub Kuźma2011-11-241-0/+13
|
* Rely on a public contract between railties instead of accessing railtie ↵José Valim2011-11-231-4/+34
| | | | methods directly.
* One of the activemodel naming tests wasn't asserting anything.Uģis Ozols2011-10-071-1/+1
|
* Rename new method to_path to to_partial_path to avoid conflicts with ↵José Valim2011-08-011-4/+4
| | | | File#to_path and similar.
* Let ActiveModel instances define partial paths.Grant Hutchins & Peter Jaros2011-07-251-4/+12
| | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
* Specify the name to be used for ActiveModel::Name fixes #1168Yves Senn2011-05-201-1/+38
| | | | This patch allows to specify the name of your models independent of the class name.
* Test to_model being called in ActiveModel::Naming helpersErnie Miller2010-10-041-0/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Don't act destructively on ActiveModel::Name#human options hash. [#5366 ↵John Firebaugh2010-09-251-0/+4
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Prepared ActiveModel::Naming to handle cases for namespaced isolated enginesPiotr Sarnacki2010-09-031-0/+99
|
* Reuse already existing classes for ActiveModel tests.José Valim2010-07-211-0/+39
|
* Small clean up in Naming and TTranslation tests.José Valim2009-12-231-1/+2
|
* Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-201-1/+1
| | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
* Use ActiveModel::TestCase base classJeremy Kemper2009-09-241-1/+1
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+27