Skip to content

Instantly share code, notes, and snippets.

@nitschmann
Last active December 25, 2015 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitschmann/6941436 to your computer and use it in GitHub Desktop.
Save nitschmann/6941436 to your computer and use it in GitHub Desktop.
This is a sample config for a rspec spec_helper.rb file with the Spork Gem inside gemified Ruby on Rails plugins
ENV["RAILS_ENV"] ||= "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rubygems"
require "spork"
require "rspec/rails"
require "rspec/autorun"
Spork.prefork do
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.order = 'random'
end
end
Spork.each_run do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment