Skip to content

Instantly share code, notes, and snippets.

@myabc
Created November 5, 2009 19:13
Show Gist options
  • Save myabc/227300 to your computer and use it in GitHub Desktop.
Save myabc/227300 to your computer and use it in GitHub Desktop.
NoMethodError in 'DataMapper::Collection with mysql#create! when scoped with a condition other than eql before(:all)'
undefined method `properties' for []:DataMapper::Collection
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/extlib-0.9.14/lib/extlib/lazy_array.rb:418:in `method_missing'
/Users/alexbcoles/git-repos/dm-core/lib/dm-core/collection.rb:1387:in `method_missing'
/Users/alexbcoles/git-repos/dm-core/lib/dm-core/collection.rb:1200:in `default_attributes'
/Users/alexbcoles/git-repos/dm-core/lib/dm-core/collection.rb:1156:in `_create'
/Users/alexbcoles/git-repos/dm-core/lib/dm-core/repository.rb:106:in `scope'
/Users/alexbcoles/git-repos/dm-core/lib/dm-core/collection.rb:1156:in `_create'
/Users/alexbcoles/git-repos/dm-core/lib/dm-core/collection.rb:782:in `create!'
/Users/alexbcoles/git-repos/dm-core/spec/public/shared/collection_shared_spec.rb:241:
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:70:in `instance_eval'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:70:in `eval_each_fail_fast'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:70:in `each'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:70:in `eval_each_fail_fast'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_hierarchy.rb:13:in `run_before_all'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:199:in `run_before_all'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:102:in `run'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in `run'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in `each'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in `run'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in `run_examples'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in `run'
/usr/local/jruby-1.4.0RC3/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:5:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment