Forum: RSpec rspec not recognised

Posted by Aashish Kiran (aashishkiran)
on 2011-09-15 11:01
Hi,
I am using Rails 3 and rspec-rails gem.
When try to run rspec spec\models\profile.rb
I get result as follows:
'rspec' is not recognized as an internal or external command,
Can you help?

Thanks,
Aashish
Posted by Sidu Ponnappa (kaiwren)
on 2011-09-15 13:07
(Received via mailing list)
If you've installed the gem via bundler, you'll need to either do
'bundle exec rspec' or run the build via rake (do `rake -T | grep
spec` to list all the spec related tasks). You should also take a look
at http://blog.davidchelimsky.net/2011/07/18/stop-typ...

In any event, most editors and IDEs allow you to run your test(s)
inline using a shortcut, so you may want to explore that option as
it's far more convenient/productive than switching to a shell.

Best,
Sidu.
http://c42.in
http://blog.sidu.in
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.