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

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:inrequire’
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:ingem_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:inrequire’
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:inrequire’
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:inload_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:inload_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’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs