Skip to content

Instantly share code, notes, and snippets.

@tomasv
Created March 6, 2013 00:29
Show Gist options
  • Save tomasv/5095700 to your computer and use it in GitHub Desktop.
Save tomasv/5095700 to your computer and use it in GitHub Desktop.
Spring + Rubymine
In shell:
export RUBYLIB=/path/to/RubyMine/rb/testing/patch/common:/path/to/RubyMine/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=/path/to/RubyMine/rb/testing/patch/common:/path/to/RubyMine/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