maltize / sublime-text-2-ruby-tests

Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber)
722 stars 119 forks source link

Trailing slash on rspec command when running RubyTest #232

Open robertcox opened 10 years ago

robertcox commented 10 years ago

Launching Sublime Text 2 from the commandline and running RubyTest using Command-Shift-T, I get a blank screen at the bottom of Sublime Text. If I open the console this is what I see:

Running rspec game_spec.rb/
Traceback (most recent call last):
  File "./sublime_plugin.py", line 337, in run_
  File "./exec.py", line 146, in run
OSError: [Errno 20] Not a directory:
'/Users/rcox/Development/ruby_studio/studio_game/game_spec.rb'
reloading /Users/rcox/Library/Application Support/Sublime Text 2/Packages/User/RubyTest.last-run

I can run rspec game_spec.rb from the comandline and it all the tests pass. I suspect the trailing slash is causing the problem, however I don't know which config setting to change to solve the issue. I have uninstalled Sublime Text 2 and re-installed making sure that I delete all the files in ~/Library/Application Support/Sublime Text 2.

Any ideas?

Thanks in advance. -Rob

robertcox commented 10 years ago

I moved the *_spec.rb files into a ./spec directory and now the tests run properly. Is this by design?