Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Forked from tomasv/rspec configuration
Last active December 20, 2015 06:59
Show Gist options
  • Save bonkydog/6090168 to your computer and use it in GitHub Desktop.
Save bonkydog/6090168 to your computer and use it in GitHub Desktop.
In shell:
export RUBYLIB=/Applications/RubyMine.app/rb/testing/patch/common:/Applications/RubyMine.app/rb/testing/patch/bdd
spring rspec spec/ # to launch spring server
In Rubymine:
Uncheck bundler
Select custom runner script as spring_rspec.rb
add same variable to environment variables:
RUBYLIB=/Applications/RubyMine.app/rb/testing/patch/common:/Applications/RubyMine.app/rb/testing/patch/bdd
#!/usr/bin/env ruby
ARGV.unshift 'rspec'
require 'rubygems'
gem 'spring'
load Gem.bin_path('spring', 'spring')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment