rake spec is failing with 'No such file or directory - spec/spec.opts' for /spec/spec/runner/option_parser_spec.rb at three places #51

Closed
neerajkumar opened this Issue Feb 7, 2012 · 0 comments

2 participants

@neerajkumar

I just forked and cloned the rspec into my local and when I was running with command rake spec, it is failing at 3 places.

1)
Errno::ENOENT in 'OptionParser implicitly loading spec/spec.opts uses spec/spec.opts if present'
No such file or directory - No such file or directory - spec/spec.opts
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/file.rb:418:in create_missing_file'
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/file.rb:273:in
initialize'
./spec/spec/runner/option_parser_spec.rb:531:in `open'
./spec/spec/runner/option_parser_spec.rb:531:

2)
Errno::ENOENT in 'OptionParser implicitly loading spec/spec.opts does not try to load spec/spec.opts if not present'
No such file or directory - spec/spec.opts
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/fileutils.rb:33:in rm'
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/fileutils.rb:32:in
each'
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/fileutils.rb:32:in `rm'
./spec/spec/runner/option_parser_spec.rb:537:

3)
Errno::ENOENT in 'OptionParser implicitly loading spec/spec.opts uses specified opts if supplied'
No such file or directory - No such file or directory - spec/spec.opts
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/file.rb:418:in create_missing_file'
/Users/neeraj/.rvm/gems/ruby-1.8.7-p357/gems/fakefs-0.4.0/lib/fakefs/file.rb:273:in
initialize'
./spec/spec/runner/option_parser_spec.rb:544:in `open'
./spec/spec/runner/option_parser_spec.rb:544:

@dchelimsky dchelimsky added a commit that closed this issue Feb 7, 2012
@dchelimsky Create the FakeFS directory before creating files in it.
- this appears to have broken with an upgrade to FakeFS.
- Fixes #51.
7c7869d
@dchelimsky dchelimsky closed this in 7c7869d Feb 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment