NB: If you use the latest version of iTerm2, you don't need this, just command-click on any file path to open it.
If you can't use iTerm2, then this gem will do the work. It transforms RSpec's backtrace output in your OSX shell to clickable links, so you can open failing specs more easily.
Should work by default
You will need to install subl-handler
Add this line to your application's Gemfile:
gem 'rspec_clickable_output'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rspec_clickable_output
When the test fails, the backtrace line should be clickable when you hold down cmd key.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request