Sha256: 0c9808e134a54a804d51f3a61d2e1878b1cca3d1126f74759827f16453d4ccb7
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
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! # config.warnings = true if config.files_to_run.one? config.default_formatter = 'doc' end # config.profile_examples = 10 config.order = :random Kernel.srand config.seed config.before do %w(write read).each do |meth| allow(IO).to receive(meth) do |*args| fail "stub me: IO.#{meth}(#{args.map(&:inspect) * ', '})" end end %w(mkdir mkpath).each do |meth| allow(FileUtils).to receive(meth) do |*args| fail "stub me: FileUtils.#{meth}(#{args.map(&:inspect) * ', '})" end end %w(` system).each do |meth| allow(Kernel).to receive(meth) do |*args| fail "stub me: Kernel.#{meth}(#{args.map(&:inspect) * ', '})" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hound-tools-0.0.6 | spec/spec_helper.rb |
hound-tools-0.0.5 | spec/spec_helper.rb |
hound-tools-0.0.4 | spec/spec_helper.rb |