-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathspec_helper.rb
More file actions
33 lines (24 loc) · 1 KB
/
spec_helper.rb
File metadata and controls
33 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require_relative '../lib/cf_deployer'
Dir.glob("#{File.dirname File.absolute_path(__FILE__)}/fakes/*.rb") { |file| require file }
CfDeployer::Log.log.outputters = nil
def puts *args
end
RSpec.configure do |config|
config.example_status_persistence_file_path = 'spec/examples.txt'
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
expectations.syntax = :expect # Disable `should`
end
config.filter_run :focus
config.mock_with :rspec do |mocks|
mocks.syntax = :expect # Disable `should_receive` and `stub`
# Prevents you from mocking or stubbing a method that does not exist on
# a real object. This is generally recommended, and will default to
# `true` in RSpec 4.
# mocks.verify_partial_doubles = true # causing tests to fail in base_spec
end
config.order = :random
config.run_all_when_everything_filtered = true
# config.warnings = true # way too many warnings right now
Kernel.srand config.seed
end