Last active
          December 25, 2015 07:48 
        
      - 
      
- 
        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
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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