Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
rake spec loads development environment #8591
Hi. I have some issues with using rspec in rails 3.2.9.
Got it, as @steveklabnik said it is expected. When you run any rake/rails command the environment that will be loaded first is the development. When you run
Here the debug info that I got running the application
$ rake spec "Loaded development environment" /Users/rafaelmfranca/.rbenv/versions/1.9.3-p327/bin/ruby -S rspec ./spec/helpers/main_helper_spec.rb "Environment before load spec_helper: " "Loaded test environment" "Environment after load spec_helper: test" $ rake db:version "Loaded development environment" Current version: 20121223225231
This is one of the reason that rspec-rails recomends you to put the gem in the