Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing slash on rspec command when running RubyTest #232

Open
robertcox opened this issue Aug 12, 2014 · 1 comment
Open

Trailing slash on rspec command when running RubyTest #232

robertcox opened this issue Aug 12, 2014 · 1 comment

Comments

@robertcox
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant