I'm trying to figure out how to run a command like...
$ bundle exec rspec spec/requests/static_pages_spec.rb
I tried to go to Tools>Run Rails Console. When typing this in I get the following error.
Loading development environment (Rails 3.2.11)
Switch to inspect mode.
>> bundle exec rspec spec/requests/static_pages_spec.rb
NameError: undefined local variable or method `spec' for main:Object
from /home/geoff/.rvm/gems/ruby-1.9.3-p327@global/gems/railties-3.2.11/lib/rails/commands/console.rb:47:in `start'
from /home/geoff/.rvm/gems/ruby-1.9.3-p327@global/gems/railties-3.2.11/lib/rails/commands/console.rb:8:in `start'
from /home/geoff/.rvm/gems/ruby-1.9.3-p327@global/gems/railties-3.2.11/lib/rails/commands.rb:41:in `<top (required)>'
from /home/geoff/RubymineProjects/sample_app/script/rails:6:in `require'
from /home/geoff/RubymineProjects/sample_app/script/rails:6:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Is there something I need to set up so I can run rails commands in the rails console? Thanks.