Sha256: 10dd07d7ab23d6772f9f31af88a5de01d3c96f77d9f16c732644372954b59b28
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter do |src| !src.filename.match(%r[lib/r10k]) end %w[Deployment Source Environment Module Git SVN Action Util].each do |group| add_group group, "lib/r10k/#{group.downcase}" end end end require 'r10k' require 'shared-examples/git-ref' require 'matchers/exit_with' require 'r10k-mocks' PROJECT_ROOT = File.expand_path('..', File.dirname(__FILE__)) require 'vcr' VCR.configure do |vcr| vcr.cassette_library_dir = File.expand_path('spec/fixtures/vcr/cassettes', PROJECT_ROOT) vcr.hook_into :faraday vcr.configure_rspec_metadata! end RSpec.configure do |config| # Filter out integration tests by default # # To run integration tests, run `rspec --tag integration` config.filter_run_excluding :integration => true config.before(:all) do Log4r::Logger.global.level = 10 end end shared_context 'fail on execution' do before do allow_any_instance_of(described_class).to receive(:execute).and_raise "Tests should never invoke system calls" allow_any_instance_of(R10K::Util::Subprocess).to receive(:execute).and_raise "Tests should never invoke system calls" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
r10k-1.4.2 | spec/spec_helper.rb |
r10k-1.4.1 | spec/spec_helper.rb |
r10k-1.4.0 | spec/spec_helper.rb |