Forum: RSpec rspec not recognised

3bc7b6532e1537ca139c02f091636d3b?d=identicon&s=25 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
7bb0d7e74198c735783b8a65cd14989c?d=identicon&s=25 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
This topic is locked and can not be replied to.