sangil
sangil

Reputation: 1320

Running RSPEC in Ruby + Rails

I am trying to run rspec in my rails app using the spec command- but I get the following error:

`require': cannot load such file -- spec/rails/example/helper_example_group_helper (LoadError)

I have had to deal already with missing 'helper' files, but it seems this one is not even in my app but in rails itself.. If I go ahead and create a helper_example_group_helper.rb file, then the error will appear regarding some other missing helper file inside Rails, ad infinitum.

The full log trace: http://pastie.org/pastes/3295692/text

The full gem list: http://pastie.org/pastes/3296070/text

I am running:

Any help would be greatly appreciated!

Thanks

Upvotes: 3

Views: 430

Answers (1)

Jim Riordan
Jim Riordan

Reputation: 1428

An old question but it's an issue I hit recently while upgrading a rails app. This issue is specific to Rails 2.3.x and ruby 1.9.3. There's a google groups thread about it here: https://groups.google.com/forum/#!msg/rubyonrails-core/gb5woRkmDlk/iQ2G7jjNWKkJ%5B1-25%5D

The workaround is to add a file to config/initializers with the following:

MissingSourceFile::REGEXPS.push([/^cannot load such file -- (.+)$/i, 1])

Upvotes: 2

Related Questions