[rspec-users] rspec not loading rails files- uninitialized constant error

Justin Ko jko170 at gmail.com
Sun Feb 20 19:35:10 EST 2011



On Feb 20, 5:07 pm, Samantha John <li... at ruby-forum.com> wrote:
> Additional info:
>
> Rails 3.0.3
> Ruby 1.8.7
>
> Gemfile:
> gem "rspec-rails",        ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec-rails.git"
> gem "rspec",              ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec.git"
> gem "rspec-core",         ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec-core.git"
> gem "rspec-expectations", ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec-expectations.git"
> gem "rspec-mocks",        ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec-mocks.git"
>
> --
> Posted viahttp://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users

Hi Samantha, since you're using Rails, you'll need to run the "rspec
rails installer". Take a look at the "Configure" section on this page:
http://relishapp.com/rspec/rspec-rails

Let us know if that works.


More information about the rspec-users mailing list