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

Version Path
knapsack_pro-6.0.3 spec/spec_helper.rb
knapsack_pro-6.0.2 spec/spec_helper.rb
knapsack_pro-6.0.1 spec/spec_helper.rb
knapsack_pro-6.0.0 spec/spec_helper.rb
knapsack_pro-5.7.0 spec/spec_helper.rb
knapsack_pro-5.6.0 spec/spec_helper.rb
knapsack_pro-5.5.0 spec/spec_helper.rb
knapsack_pro-5.4.1 spec/spec_helper.rb
knapsack_pro-5.4.0 spec/spec_helper.rb
knapsack_pro-5.3.5 spec/spec_helper.rb
knapsack_pro-5.3.4 spec/spec_helper.rb
knapsack_pro-5.3.3 spec/spec_helper.rb
knapsack_pro-5.3.2 spec/spec_helper.rb
knapsack_pro-5.3.1 spec/spec_helper.rb
knapsack_pro-5.3.0 spec/spec_helper.rb
knapsack_pro-5.2.1 spec/spec_helper.rb
knapsack_pro-5.2.0 spec/spec_helper.rb
knapsack_pro-5.1.2 spec/spec_helper.rb
knapsack_pro-5.1.1 spec/spec_helper.rb
knapsack_pro-5.1.0 spec/spec_helper.rb