I'm new to Ruby, RSped and RubyMine so excuse me if the questions show my ignorance (although I have shown them to my teammates, not beginners, and they're all stumpted too). I'm trying to debug a spec file and I'm unable to get it to work with any arguments that I want to pass to RSpec. Here's the command that works just fine from the command line:
bin/rake rspec:run include=spec/account/get_account_spec.rb stack=next trace=T
1) I've tried making an RSpec configuration (you can see my field values in image RSpec_1.gif) and I can it to run just fine if I leave off the 'stack' and 'track' arguments. But when I add them to the 'Runner Options' field, I get the following errors:
Fast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:65441
I, [2012-12-06T17:52:35.216505 #30518] INFO -- : New RightAws::S3Interface using shared connections mode
/git/oz/oz-qe-spec/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load': no such file to load -- /git/oz/oz-qe-spec/stack=next (LoadError)
from /git/oz/oz-qe-spec/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `block in load_spec_files'
Note that "/git/oz/oz-qe-spec" is the working directory and the RubyMine project directory. It looks like it's appending the runner options to the actual file name? I thought maybe the Runner Options field was exclusively for arguments to RSpec (like -I Directory) but I've tried adding the arguments to every field (none of which made logical sense, just trial-and-error here) and none of them work.
2) I tried making a Rake configuration instead (you can see my field values in image image Rake_1.gif). This time I get an error:
I, [2012-12-06T18:01:38.291864 #31203] INFO -- : New RightAws::S3Interface using shared connections mode
No examples matching  could be found
I found that if I run just "bin/rake rspec:run" from the command line, I get the same error so that leads me to believe that the Rake configuration isn't even passing the spec file to run to RSpec (the 'include' argument)
I'm using RubyMine 4.5.4 and Ruby 1.9.2
So, is this a bug in RubyMine or do I just completely not understand what's going on yet?
Thanks in advance!