carlosbrando / remarkable

Simplifying tests!
http://www.nomedojogo.com/category/remarkable/
MIT License
350 stars 6 forks source link

(Ruby 1.9.1) uninitialized constant Remarkable::ActiveRecord (NameError) #3

Closed jachenry closed 14 years ago

jachenry commented 15 years ago

spec_helper.rb ... require 'spec/autorun' require 'spec/rails' require 'remarkable_rails' ...

results in the following error on ruby 1.9.1

/opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:443:in load_missing_constant': uninitialized constant Remarkable::ActiveRecord (NameError) from /opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:inconst_missing_with_dependencies' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/remarkable_rails-3.1.10/lib/remarkable_rails/active_orm.rb:17:in <top (required)>' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:inrequire' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in require' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/remarkable_rails-3.1.10/lib/remarkable_rails.rb:25:in<top (required)>' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in require' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:inrequire' from /Users/user/repos/project.com/spec/spec_helper.rb:7:in <top (required)>' from /Users/user/repos/project.com/spec/models/brand_spec.rb:1:inrequire' from /Users/user/repos/project.com/spec/models/brand_spec.rb:1:in <top (required)>' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:15:inload' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:15:in block in load_files' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:14:ineach' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:14:in load_files' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/lib/spec/runner/options.rb:132:inrun_examples' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in run' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-1.2.9/bin/spec:5:in

'

mattsoutherden commented 14 years ago

For me, including remarkable_activerecord before remarkable_rails fixes this problem

jachenry commented 14 years ago

same here. Thanks.