1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
Commit graph

17 commits

Author SHA1 Message Date
Thorsten Böttger
f638333313 correct spelling of filenames 2015-07-11 21:45:31 +12:00
Thorsten Böttger
ebf81091a8 remove unused methods find_in_state, count_in_state, with_state_scope for Mongoid 2015-07-11 00:15:47 +12:00
Shweta
1c37b50871 Refs [#206] Initialize aasm state after initialize for mongoid 2015-02-22 16:43:01 +05:30
Josef Šimánek
8f9410178d Ruby 1.9.3 is minimal now. Mongoid should be installed everytime via bundler. 2015-01-19 01:00:36 +01:00
Thorsten Böttger
f7927e1610 running tests with Sequel, too 2014-05-05 21:54:07 +02:00
Peter M. Goldstein
caa9d9dcc7 Update specs to use 'expect' syntax using transpec. Loosed gemspec to allow rspec versions greater than 2.14.x 2014-01-11 08:10:59 -08:00
Thorsten Böttger
09e5ae5937 initialize the state even if validation is skipped (for Mongoid) 2013-12-16 23:42:03 +01:00
Thorsten Böttger
12e7d98ee4 removed debug output 2013-11-28 20:41:18 +01:00
Thorsten Böttger
e7c4302b87 disabling mongoid specs for Rails 4 (not yet supported by mongoid) 2013-11-28 00:20:27 +01:00
Thorsten Böttger
a3700b2826 added configuration option to disable automatic scope creation 2013-08-06 16:55:32 +02:00
Thorsten Böttger
66d4a61bd0 testing mongoid for Ruby >= 1.9.3 again 2013-04-28 15:20:26 +02:00
Thorsten Böttger
55f6ccdcad fixed tests for Mongoid 2013-04-21 19:20:53 +02:00
Thorsten Böttger
461886e394 one file per test model class 2013-04-21 18:43:03 +02:00
Johnny Shields
1b4e44709b Using Ruby 1.8 hash syntax 2013-01-08 04:47:58 +09:00
Johnny Shields
a2e8d42c27 More isolation of Ruby version for Mongoid testing/travis purposes 2013-01-08 04:37:37 +09:00
Johnny Shields
86177860da Skipping Mongoid except on Ruby 1.9.3 or greater. 2013-01-08 04:28:23 +09:00
Johnny Shields
13e7090d40 Added autocreation of state scopes for Mongoid, including RSpec tests. The interface mirrors the ActiveRecord support for the same.
Summary of changes
- Added the following methods to persistence/mongoid_persistence.rb
  - find_in_state
  - count_in_state
  - with_state_scope (protected in AR, would argue it should be made public there.
  - I did not port calculate_in_state, due to AR vs. Mongoid API differences; I made with_state_scope public instead. (I think it should be public for AR as well.)
- Moved AASM::Base patch which aliases scopes in persistence/active_record_persistence.rb to persistence/base.rb, and added a Mongoid detection clause to the if statement (in addition to AR). Also deleted commented code from the original method.
- Added 'mongoid' as dev dependency to gemspec
- Created two test files (mongoid_persistance_spec.rb and mongoid_models.rb) covering all my changes.
2013-01-07 07:29:35 +09:00