Created
September 18, 2014 08:36
-
-
Save rummelonp/ad883ae1c41c0a3f76cf to your computer and use it in GitHub Desktop.
RSpec 3.1 用の spec_helper.rb の雛形的な
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
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