Skip to content

Instantly share code, notes, and snippets.

@jamesmoriarty
Created April 17, 2012 22:42
Show Gist options
  • Select an option

  • Save jamesmoriarty/2409577 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmoriarty/2409577 to your computer and use it in GitHub Desktop.
SimpleCov and Spork
gem 'spork', '1.0.0rc'
gem 'simplecov', :require => false
Spork.prefork do
unless ENV['DRB']
require 'simplecov'
SimpleCov.start 'rails'
end
# ...
end
Spork.each_run do
if ENV['DRB']
require 'simplecov'
SimpleCov.start 'rails'
end
# ...
end
MyApp::Application.configure do
config.cache_classes = false
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment