Sha256: 623e209477a8c643510abfcf2c58646d6dee52f4c07a9a971b6cee07f58e1342
Contents?: true
Size: 1.07 KB
Versions: 41
Compression:
Stored size: 1.07 KB
Contents
require 'rspec/its' require 'spinach' require 'timecop' Timecop.safe_mode = true require 'vcr' require 'webmock/rspec' VCR.configure do |config| config.cassette_library_dir = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock # or :fakeweb config.ignore_hosts('codeclimate.com') end require 'knapsack_pro' Dir["#{KnapsackPro.root}/spec/{support,fixtures}/**/*.rb"].each { |f| require f } KNAPSACK_PRO_TMP_DIR = File.join(KnapsackPro.root, '.knapsack_pro') RSpec.configure do |config| config.order = :random config.mock_with :rspec do |mocks| mocks.syntax = :expect mocks.verify_partial_doubles = true end config.expect_with :rspec do |c| c.syntax = :expect end config.before(:each) do if RSpec.current_example.metadata[:clear_tmp] FileUtils.rm_r(KNAPSACK_PRO_TMP_DIR) if File.exist?(KNAPSACK_PRO_TMP_DIR) FileUtils.mkdir_p(KNAPSACK_PRO_TMP_DIR) end end config.after(:each) do if RSpec.current_example.metadata[:clear_tmp] FileUtils.rm_r(KNAPSACK_PRO_TMP_DIR) if File.exist?(KNAPSACK_PRO_TMP_DIR) end end end
Version data entries
41 entries across 41 versions & 1 rubygems