Ryuta Kamizono
|
09525527a5
|
Deprecate passing string to :if and :unless conditional options on set_callback and skip_callback
|
2017-02-04 20:48:29 +09:00 |
|
Rafael Mendonça França
|
fe1f4b2ad5
|
Add more rubocop rules about whitespaces
|
2016-10-29 01:17:49 -02:00 |
|
Rafael Mendonça França
|
55f9b8129a
|
Add three new rubocop rules
Style/SpaceBeforeBlockBraces
Style/SpaceInsideBlockBraces
Style/SpaceInsideHashLiteralBraces
Fix all violations in the repository.
|
2016-08-16 04:30:11 -03:00 |
|
Xavier Noria
|
b326e82dc0
|
applies remaining conventions across the project
|
2016-08-06 20:20:22 +02:00 |
|
Xavier Noria
|
4c20825457
|
applies new string literal convention in activemodel/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
|
2016-08-06 18:38:23 +02:00 |
|
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 |
|
Carlos Antonio da Silva
|
801baeed69
|
Use the new clear_validators! api to reset validators in tests
|
2014-01-27 08:26:54 -02:00 |
|
Rajarshi Das
|
782d794c20
|
use assert_empty in activemodel conditional validation test cases
|
2013-09-10 17:26:39 +05:30 |
|
Patrick Robertson
|
eebb9ddf9b
|
Convert ActiveModel to 1.9 hash syntax.
I also attempted to fix other styleguide violations such as
{ a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ).
|
2013-05-01 18:01:46 -07:00 |
|
Sebastian Martinez
|
21b61a8ac4
|
Follow code conventions on some tests
|
2011-05-10 20:58:36 -03:00 |
|
Josh Kalderimis
|
605c6455ac
|
removed AR from all AMo tests, including any unneeded files (schema, fixtures and test helper)
|
2010-05-09 00:08:11 +03:00 |
|
Josh Kalderimis
|
66913a76af
|
removed use of AR in AMo tests and removed testing of scopes (:on) in individual validation tests and moved them to their own test file
|
2010-05-08 23:51:36 +03:00 |
|
Lawrence Pit
|
9bd91b00b8
|
Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax for I18n
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-05-03 13:37:32 +02:00 |
|
José Valim
|
74098e4cb6
|
No need to use ValidationsRepairHelper hack on ActiveModel anymore, Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
|
2009-12-23 13:30:58 +01:00 |
|
Pratik Naik
|
320933205e
|
Deprecate Errors#on_base/add_to_base/invalid?/each_full
|
2009-03-21 18:34:05 +00:00 |
|
Pratik Naik
|
4367f39dea
|
TestDatabase -> TestsDatabase
|
2009-03-20 16:02:12 +00:00 |
|
Pratik Naik
|
60756ad4ec
|
Move relevant validation tests from Active Record to Active Model
|
2009-03-20 15:07:49 +00:00 |
|