[rspec-users] I can't make RSpec 1.0.8 run in Rails 1.2.3

Daniel Mantilla lists at ruby-forum.com
Tue Oct 9 12:15:55 EDT 2007


I removed both plugins and reinstalled them using the CURRENT tag. Then 
ran the 'ruby script/generate rspec' and finally the 'rake spec', but I 
get the same error. Here is the full trace:

C:\Projects\Rails\Workspace\MPS>rake spec --trace
C:0:Warning: require_gem is obsolete.  Use gem instead.
(in C:/Projects/Rails/Workspace/MPS)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute spec
./spec/models/report_class_spec.rb:4: uninitialized constant ReportClass 
(NameError) from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.r
b:106:in `load' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.r
b:106:in `load_specs' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.r
b:105:in `each' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.r
b:105:in `load_specs' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.r
b:49:in `prepare!' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.r
b:19:in `run' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/command_line.rb:17
:in `run' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:1
81:in `parse_options_file'
         ... 7 levels...
        from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:1
55:in `parse' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:8
8:in `create_behaviour_runner' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib/spec/runner/command_line.rb:14
:in `run' from 
C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/bin/spec:3
rake aborted!
Command ruby 
-I"C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/lib" 
"C:/Projects/Rails/Workspace/MPS/vendor/plugins/rspec/bin/spec" 
"spec/models/report_class_spec.rb" --options 
"C:/Projects/Rails/Workspace/MPS/config/../spec/spec.opts" failed
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list