Basic RSpec Error, 'no such file to load'. Help

  • Thread starter Prasanna Perera
  • Start date

P

Prasanna Perera

Hello,

I am new to working with RSpec
I get a 'no such file to load' error when I run 'rake spec'. The stack
trace is below. At the root of my rails app I did:

1) ruby script/plugin install
http://rspec.rubyforge.org/svn/tags/REL_1_1_3/rspec
2) ruby script/plugin install
http://rspec.rubyforge.org/svn/tags/REL_1_1_3/rspec_on_rails
3) ruby script/generate rspec
4) created category_spec.rb in spec/models with
require File.dirname(__FILE__) + '/../spec_helper'

Please provide any help. I am following Foundation Rails 2 by Alameda.
thanks, Prasanna

C:\Users\prasanna\Documents\Rails\Books\Rails2\Minimal_Final_Code\Chapter_09\plu
gins>rake spec
(in
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/Chapter_09
/plugins)
You must 'gem install win32console' to use colour on Windows
C:/_Develop/Ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`
gem_original_require': no such file to load -- application
(MissingSourceFile)
from
C:/_Develop/Ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_requi
re.rb:31:in `require'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/rails/activesupport/lib/active_support/dependencies.rb:
158:in `require'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/plugins/rspec_on_rails/lib/spec/rails.rb:3
from
C:/_Develop/Ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_requi
re.rb:31:in `gem_original_require'
from
C:/_Develop/Ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_requi
re.rb:31:in `require'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/rails/activesupport/lib/active_support/dependencies.rb:
158:in `require'
from ./spec/model/../spec_helper.rb:6
from
C:/_Develop/Ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_requi
re.rb:31:in `gem_original_require'
from
C:/_Develop/Ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_requi
re.rb:31:in `require'
from ./spec/model/category_spec.rb:1
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:1
4:in `load'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:1
4:in `load_files'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:1
3:in `each'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:1
3:in `load_files'
from
C:/Users/prasanna/Documents/Rails/Books/Rails2/Minimal_Final_Code/C
hapter_09/plugins/vendor/plugins/rspec/lib/spec/runner/options.rb:85:in
`run_exa
mples'
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top