Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Created September 18, 2014 08:36
Show Gist options
  • Save rummelonp/ad883ae1c41c0a3f76cf to your computer and use it in GitHub Desktop.
Save rummelonp/ad883ae1c41c0a3f76cf to your computer and use it in GitHub Desktop.
RSpec 3.1 用の spec_helper.rb の雛形的な
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
config.filter_run :focus
config.run_all_when_everything_filtered = true
config.disable_monkey_patching!
if config.files_to_run.one?
config.default_formatter = 'doc'
end
config.order = :random
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment