Jeremy Kemper
5481e54175
AM::StateMachine autoloads
2009-05-30 11:59:16 -07:00
Joshua Peek
e7d6f48ea9
Use AS::Concern in ActiveModel
2009-05-30 09:35:24 -05:00
Joshua Peek
69742ca8fa
Merge branch 'master' into active_model
...
Conflicts:
activemodel/lib/active_model/core.rb
activemodel/test/cases/state_machine/event_test.rb
activemodel/test/cases/state_machine/state_transition_test.rb
activerecord/lib/active_record/validations.rb
activerecord/test/cases/validations/i18n_validation_test.rb
activeresource/lib/active_resource.rb
activeresource/test/abstract_unit.rb
2009-05-29 16:06:21 -05:00
Jeremy Kemper
e8550ee032
Cherry-pick core extensions
2009-05-13 12:00:15 -07:00
Jeremy Kemper
2f42433f0a
Cherry-pick the inflector only
2009-05-05 21:40:53 -07:00
Jeremy Kemper
b2d6fdae35
Fix tests on 1.9
2009-04-22 17:07:04 -07:00
Jeremy Kemper
ab321268f8
No more free lunch
2009-04-22 16:10:49 -07:00
Pratik Naik
d758d996d1
Deprecate Model#validate/validate_on_create/validate_on_update. Use Model.validate :method and likewise
2009-03-21 19:07:15 +00:00
Pratik Naik
320933205e
Deprecate Errors#on_base/add_to_base/invalid?/each_full
2009-03-21 18:34:05 +00:00
Pratik Naik
2bc4189faf
Get rid of active_model/core and active_model/callbacks
2009-03-21 01:32:59 +00:00
Pratik Naik
e4b89b4680
Validation options dont need explicit :on => :save
2009-03-21 01:16:30 +00:00
Pratik Naik
379e468034
Remove DEFAULT_VALIDATION_OPTIONS from validations
2009-03-21 01:14:58 +00:00
Pratik Naik
22ad30ed60
Move validate_on_create and validate_on_update from ActiveModel to ActiveRecord
2009-03-21 01:11:38 +00:00
Pratik Naik
6173e5bfae
Add ActiveModel::Validations tests for regular ruby classes
2009-03-20 22:21:27 +00:00
Pratik Naik
08a99d0eac
Add I18n translations to ActiveModel and move more AR specific parts to ActiveRecord::Validations
2009-03-20 21:45:13 +00:00
Pratik Naik
bc1dd0b82e
Improve the deprecation message for Errors#on
2009-03-20 18:12:21 +00:00
Pratik Naik
7d187c193c
Validation tests arent using any fixtures
2009-03-20 18:07:35 +00:00
Pratik Naik
78c9791729
ActiveModel.load_all! isn't really needed at this point
2009-03-20 18:02:50 +00:00
Pratik Naik
4a582aa7ca
Use mattr_accessor in TestsDatabase instead of setup method
2009-03-20 17:56:46 +00:00
Pratik Naik
37283a6aae
Deprecate Error#on(attribute) in favour of Errors#[attribute]
2009-03-20 17:36:22 +00:00
Pratik Naik
4367f39dea
TestDatabase -> TestsDatabase
2009-03-20 16:02:12 +00:00
Pratik Naik
d01e639daf
Remove unused columns from the ActiveModel test schema
2009-03-20 15:33:40 +00:00
Pratik Naik
cda984d314
Future deprecation message
2009-03-20 15:27:55 +00:00
Pratik Naik
60756ad4ec
Move relevant validation tests from Active Record to Active Model
2009-03-20 15:07:49 +00:00
Pratik Naik
e945bcfe4a
Add test sqlite3 db to .gitignore
2009-03-20 11:22:27 +00:00
Pratik Naik
5b1a1bf5bf
Make Active Model test suite similar to Active Record
2009-03-20 10:32:24 +00:00
Pratik Naik
93e2d378df
Autload ActiveModel::Observing
2009-03-20 01:13:24 +00:00
Pratik Naik
77acfefedf
Make Active Resource use ActiveModel::Errors
2009-03-19 23:45:08 +00:00
Pratik Naik
638333b7a1
Move uniqueness and association validations to Active Record
2009-03-19 23:44:30 +00:00
Pratik Naik
8828b2ca67
Move all the Active Record validations to Active Model
2009-03-19 23:28:59 +00:00
Pratik Naik
18eb80ccc7
Merge docrails
2009-03-16 11:28:36 +00:00
Jeremy Kemper
1c36172c13
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
...
[#1617 state:resolved]
2009-03-08 13:11:58 -07:00
Pratik Naik
dbbae5e00e
Merge with docrails
2008-12-07 03:27:53 +01:00
Jeremy Kemper
d9c95c82e5
Explicitly require Active Support for tests
2008-11-24 22:45:44 -08:00
Jeremy Kemper
e931012287
Require Mocha >= 0.9.3 which includes a MiniTest adapter
2008-11-23 15:05:59 -08:00
Jeremy Kemper
0e2d18e415
Extract state query method definition and quiet method redefinition warning.
2008-11-22 19:19:13 -08:00
Jeremy Kemper
0492759db3
MiniTest compat: don't shadow @name
2008-11-22 19:19:13 -08:00
Jeremy Kemper
5b7d07f423
Require mocha for tests. Get rid of uses_mocha helper.
2008-11-19 11:08:34 -08:00
Jeremy Kemper
a1ce4008c8
Require mocha before the testcase overrides, otherwise its run method is clobbered
2008-11-19 11:08:19 -08:00
Jeremy Kemper
bedea33043
Eliminate method redefinition warning
2008-11-19 11:07:19 -08:00
Jeremy Kemper
29a31912fc
Lazy-require state machine internals when the module is included
2008-11-15 21:05:03 -08:00
Jeremy Kemper
d7bad6e2eb
Use the Ruby load path for test_helper requires. Fix AM::TestCase.
2008-11-15 20:25:14 -08:00
Pratik Naik
6ef35461dc
Merge docrails
2008-09-03 17:58:47 +01:00
Clemens Kofler
a377c9853c
Some performance goodness for AM Validations.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-03 00:55:23 +02:00
Clemens Kofler
b42f53ca1f
Some performance goodness for AM StateMatchine.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-03 00:55:23 +02:00
Clemens Kofler
1646e8c364
More symbols for send and respond_to?.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-03 00:55:22 +02:00
Jeremy Kemper
a1eb4e11c2
Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, but it has since been removed from 1.9.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
Conflicts:
actionpack/test/controller/layout_test.rb
2008-08-31 13:20:15 -07:00
Tarmo Tänav
656f0e7c6c
Fix file permissions
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-31 16:36:23 -05:00
rick
01db5ded54
Merge branch 'state_machine'
...
Some big changes:
* Added some redundant requires so active_support/inflecto can be loaded
without the rest of ActiveSupport.
* Disabled callbacks and validations until they are added and tested.
* Converted specs back to tests, using ActiveSupport::TestCase and the new
#test helper.
* As an experiment, I imported Scott Barron's awesome AASM gem into
ActiveModel. I added multiple state machine support and vastly improved
the API (no more aasm_* prefixes). All the old tests pass. If this bothers
people, I have no problems removing this and contributing the changes back to
AASM. I just feel like AMo is a better spot for all these 'modelish' features.
2008-06-29 12:13:58 -07:00
rick
c9e366e997
all aasm tests without activerecord moved over and passing
2008-06-28 11:33:50 -07:00