ianwhite / orm_adapter

Provides a single point of entry for using basic features of ruby ORMs
MIT License
194 stars 76 forks source link

busted on Rubinius: undefined methods create_model & reload_model #2

Closed jc00ke closed 12 years ago

jc00ke commented 13 years ago

using Rubinius 1.2.0 on Ubuntu 10.10

[orm_adapter](active_resource)
$> bundle exec rake spec
(in /home/jesse/projects/orm_adapter)
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S bundle exec rspec ./spec/orm_adapter_spec.rb ./spec/orm_adapter/base_spec.rb ./spec/orm_adapter/adapters/mongoid_spec.rb ./spec/orm_adapter/adapters/active_record_spec.rb ./spec/orm_adapter/adapters/data_mapper_spec.rb
.................FF.FF.F.FFFF.FFFF.FF.....FF.FF.F.FFFF.FFFF.FF......FF.FF.F.FFFF.FFF..FF

Failures:

  1) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#get!(id) should return the instance with id if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c70>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:53:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  2) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#get!(id) should allow to_key like arguments
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c70>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:58:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  3) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#get(id) should return the instance with id if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c70>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:69:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  4) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#get(id) should allow to_key like arguments
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c70>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:74:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  5) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_first (conditions) should return first model matching conditions, if it exists
     Failure/Error: user = create_model(user_class, :name => "Fred")
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c72>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:86:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  6) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_first (conditions) when conditions contain associated object, should return first model if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c72>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:95:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  7) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_first (:order => <order array>) should return first model in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c72>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:103:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  8) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_first (:conditions => <conditions hash>, :order => <order array>) should return first model matching conditions, in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c72>::Nested_3.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:111:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  9) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_all (conditions) should return only models matching conditions
     Failure/Error: user1 = create_model(user_class, :name => "Fred")
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c74>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:121:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  10) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_all (conditions) when conditions contain associated object, should return first model if it exists
     Failure/Error: user1, user2 = create_model(user_class), create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c74>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:132:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  11) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_all (:order => <order array>) should return all models in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c74>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:141:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  12) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_all (:conditions => <conditions hash>, :order => <order array>) should return only models matching conditions, in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c74>::Nested_3.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:150:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  13) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#create!(attributes) should create a model with the passed attributes
     Failure/Error: reload_model(user).name.should == "Fred"
     NoMethodError:
       undefined method `reload_model' on an instance of #<Class:0x9c70>::Nested_5.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:161:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  14) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#create!(attributes) when attributes contain an associated object, should create a model with the attributes
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c70>::Nested_5.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:169:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  15) Mongoid::Document::OrmAdapter it should behave like example app with orm_adapter adapter instance#create!(attributes) when attributes contain an has_many assoc, should create a model with the attributes
     Failure/Error: notes = [create_model(note_class), create_model(note_class)]
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0x9c70>::Nested_5.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/mongoid_spec.rb:41
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:175:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  16) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#get!(id) should return the instance with id if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa000>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:53:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  17) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#get!(id) should allow to_key like arguments
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa000>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:58:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  18) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#get(id) should return the instance with id if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa000>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:69:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  19) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#get(id) should allow to_key like arguments
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa000>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:74:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  20) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_first (conditions) should return first model matching conditions, if it exists
     Failure/Error: user = create_model(user_class, :name => "Fred")
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa002>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:86:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  21) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_first (conditions) when conditions contain associated object, should return first model if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa002>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:95:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  22) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_first (:order => <order array>) should return first model in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa002>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:103:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  23) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_first (:conditions => <conditions hash>, :order => <order array>) should return first model matching conditions, in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa002>::Nested_3.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:111:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  24) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_all (conditions) should return only models matching conditions
     Failure/Error: user1 = create_model(user_class, :name => "Fred")
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa004>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:121:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  25) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_all (conditions) when conditions contain associated object, should return first model if it exists
     Failure/Error: user1, user2 = create_model(user_class), create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa004>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:132:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  26) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_all (:order => <order array>) should return all models in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa004>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:141:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  27) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#find_all (:conditions => <conditions hash>, :order => <order array>) should return only models matching conditions, in specified order
     Failure/Error: user1 = create_model(user_class, :name => "Fred", :rating => 1)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa004>::Nested_3.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:150:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  28) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#create!(attributes) should create a model with the passed attributes
     Failure/Error: reload_model(user).name.should == "Fred"
     NoMethodError:
       undefined method `reload_model' on an instance of #<Class:0xa000>::Nested_5.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:161:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  29) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#create!(attributes) when attributes contain an associated object, should create a model with the attributes
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa000>::Nested_5.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:169:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  30) [ActiveRecord orm adapter] it should behave like example app with orm_adapter adapter instance#create!(attributes) when attributes contain an has_many assoc, should create a model with the attributes
     Failure/Error: notes = [create_model(note_class), create_model(note_class)]
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa000>::Nested_5.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/active_record_spec.rb:48
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:175:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  31) DataMapper::Resource::OrmAdapter it should behave like example app with orm_adapter adapter instance#get!(id) should return the instance with id if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa32e>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/data_mapper_spec.rb:45
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:53:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  32) DataMapper::Resource::OrmAdapter it should behave like example app with orm_adapter adapter instance#get!(id) should allow to_key like arguments
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa32e>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/data_mapper_spec.rb:45
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:58:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  33) DataMapper::Resource::OrmAdapter it should behave like example app with orm_adapter adapter instance#get(id) should return the instance with id if it exists
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa32e>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/data_mapper_spec.rb:45
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:69:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  34) DataMapper::Resource::OrmAdapter it should behave like example app with orm_adapter adapter instance#get(id) should allow to_key like arguments
     Failure/Error: user = create_model(user_class)
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa32e>::Nested_2.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/data_mapper_spec.rb:45
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:74:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/loader.rb:557:in `epilogue'
     # kernel/loader.rb:648:in `main'
     # kernel/loader.rb:658:in `main'
     # kernel/loader.rb:669:in `__script__'

  35) DataMapper::Resource::OrmAdapter it should behave like example app with orm_adapter adapter instance#find_first (conditions) should return first model matching conditions, if it exists
     Failure/Error: user = create_model(user_class, :name => "Fred")
     NoMethodError:
       undefined method `create_model' on an instance of #<Class:0xa330>::Nested_1.
     Shared Example Group: "example app with orm_adapter" called from ./spec/orm_adapter/adapters/data_mapper_spec.rb:45
     # kernel/delta/kernel.rb:85:in `method_missing'
     # ./spec/orm_adapter/example_app_shared.rb:86:in `__script__'
     # kernel/common/eval.rb:164:in `instance_eval'
     # kernel/common/throw_catch.rb:34:in `catch'
     # kernel/common/throw_catch.rb:13:in `register'
     # kernel/common/throw_catch.rb:33:in `catch'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:64:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
     # kernel/bootstrap/array.rb:90:in `map'
     # kernel/bootstrap/array.rb:72:in `each'
     # kernel/bootstrap/array.rb:88:in `map'
ianwhite commented 13 years ago

Hi there,

These failures are to do with rspec stuff, rather than the lib code. It looks like defining methods inside shared examples is working differently in your setup than mine. Can you confirm what version of rspec you are using?

Cheers, Ian

jc00ke commented 13 years ago

Hi Ian, looks like I've got rspec (2.4.0) rspec-core (2.4.0) rspec-expectations (2.4.0) rspec-mocks (2.4.0) in my fork.

josevalim commented 12 years ago

Is this still an issue?

jc00ke commented 12 years ago

Nope, doesn't look like it's a problem anymore.