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:
- ruby script/plugin install
http://rspec.rubyforge.org/svn/tags/REL_1_1_3/rspec - ruby script/plugin install
http://rspec.rubyforge.org/svn/tags/REL_1_1_3/rspec_on_rails - ruby script/generate rspec
- 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’