I'm getting the following error running specs for dm-validations (also getting it running dm-sweatshop specs, which is actually why I care):
./lib/dm-validations/auto_validate.rb:168:in `infer_numeric_validation_for': undefined method `min' for #<DataMapper::Property:0x27622ec> (NoMethodError) I'm on datamapper/next, most recent commit is ~/Code/dm/dm-more/dm-validations (next)$ git log commit db456f6a48d4eb9ecd4ee374d0a9a9e27f4027ea Author: Dan Kubb <[email protected]> Date: Fri Sep 11 22:14:05 2009 -0700 [dm-more] Require rubygems in each spec_helper.rb I'm not familiar with dm-validations, is there something obvious I've missed? Xavier ~/Code/dm/dm-more/dm-validations (next)$ rake (in /Users/xavier/Code/dm/dm-more/dm-validations) rm -r coverage ./spec/spec_helper.rb:28: warning: already initialized constant HAS_SQLITE3 ./spec/spec_helper.rb:29: warning: already initialized constant HAS_MYSQL ./spec/spec_helper.rb:30: warning: already initialized constant HAS_POSTGRES ./spec/spec_helper.rb:32: warning: already initialized constant ROOT ./lib/dm-validations/auto_validate.rb:168:in `infer_numeric_validation_for': undefined method `min' for #<DataMapper::Property:0x27622ec> (NoMethodError) from ./lib/dm-validations/auto_validate.rb:101:in `auto_generate_validations' from /Users/xavier/Code/dm/dm-core/lib/dm-core/property.rb:857:in `initialize' from /Users/xavier/Code/dm/dm-core/lib/dm-core/model/property.rb:55:in `new' from /Users/xavier/Code/dm/dm-core/lib/dm-core/model/property.rb:55:in `property' from /Users/xavier/Code/dm/dm-more/dm-validations/spec/fixtures/basketball_court.rb:17 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./spec/spec_helper.rb:34 from ./spec/spec_helper.rb:34:in `each' from ./spec/spec_helper.rb:34 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./spec/integration/absent_field_validator/absent_field_validator_spec.rb:1 from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:15:in `load' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:15:in `load_files' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:14:in `each' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner/example_group_runner.rb:14:in `load_files' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner/options.rb:99:in `run_examples' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner.rb:61:in `run' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.6/lib/spec/runner.rb:45:in `autorun' from /opt/local/bin/rcov:19 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
