Skip to content

Instantly share code, notes, and snippets.

@toshiwo
Created March 27, 2013 08:27
Show Gist options
  • Save toshiwo/5252657 to your computer and use it in GitHub Desktop.
Save toshiwo/5252657 to your computer and use it in GitHub Desktop.
# spec_helper.rb
if ENV['COVERAGE']
require "simplecov"
SimpleCov.start do
add_filter "/spec/"
add_filter "/vendor/bundle/"
end
end
require 'foobar'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.expand_path("./support/**/*.rb", File.dirname(__FILE__))].each {|f| require f}
RSpec.configure do |config|
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment