Ben Mabey
2007-Nov-07 17:31 UTC
[rspec-users] LoadError when upgraded to latest rspec trunk
I just moved my rspec and rspec_on_rails plugin from r2691 to r2822. After that I upgraded both of them I regenerated all things rspec with the rspec generator. I was running on rails r2691 but upgraded to the latest at r2822 when I was getting errors but that still didn''t help things. I get the following when I try to run a spec with either rake spec or ./script/spec: /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'': Expected /app/trunk/vendor/plugins/rspec/lib/spec/test.rb to define Spec::Test (LoadError) from /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'' from /app/trunk/vendor/plugins/rspec_on_rails_old/lib/spec/rails/dsl/behaviour/rails_example.rb:6 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'' from /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'' from /app/trunk/vendor/plugins/rspec_on_rails_old/lib/spec/rails/dsl/behaviour.rb:2 ... 24 levels... from /app/trunk/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:13:in `load_files'' from /app/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:75:in `run_examples'' from /app/trunk/vendor/plugins/rspec/lib/spec/runner/command_line.rb:21:in `run'' from ./script/spec:4 Any ideas on what might be wrong? I looked at that file and all it seems to be doing is requiring other files. I''m going to start a project from scratch to see if I can reproduce the error and see if I can narrow it down to being app specidic.. But has anyone had similar problems? Thanks, Ben
David Chelimsky
2007-Nov-07 17:46 UTC
[rspec-users] LoadError when upgraded to latest rspec trunk
On Nov 7, 2007 11:31 AM, Ben Mabey <ben at benmabey.com> wrote:> I just moved my rspec and rspec_on_rails plugin from r2691 to r2822. > After that I upgraded both of them I regenerated all things rspec with > the rspec generator. I was running on rails r2691 but upgraded to the > latest at r2822 when I was getting errors but that still didn''t help things.I''m on rspec 2822 and rails 8111 and do not have this trouble.> > I get the following when I try to run a spec with either rake spec or > ./script/spec: > > /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in > `load_missing_constant'': Expected > /app/trunk/vendor/plugins/rspec/lib/spec/test.rb to define Spec::Test > (LoadError) > from > /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in > `const_missing'' > from > /app/trunk/vendor/plugins/rspec_on_rails_old/lib/spec/rails/dsl/behaviour/rails_example.rb:6 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from > /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in > `require'' > from > /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from > /app/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in > `require'' > from > /app/trunk/vendor/plugins/rspec_on_rails_old/lib/spec/rails/dsl/behaviour.rb:2 > ... 24 levels... > from > /app/trunk/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:13:in > `load_files'' > from > /app/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:75:in > `run_examples'' > from > /app/trunk/vendor/plugins/rspec/lib/spec/runner/command_line.rb:21:in `run'' > from ./script/spec:4 > > > Any ideas on what might be wrong? I looked at that file and all it > seems to be doing is requiring other files. I''m going to start a > project from scratch to see if I can reproduce the error and see if I > can narrow it down to being app specidic.. But has anyone had similar > problems? > > Thanks, > Ben > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >