Sha256: 8328724e027d6aad709a2d89a972d51418d6db516733db5306b12b4ce3990d82

Contents?: true

Size: 1003 Bytes

Versions: 97

Compression:

Stored size: 1003 Bytes

Contents

require 'rspec/its'
require 'spinach'

require 'timecop'
Timecop.safe_mode = true

require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

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 }

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.mkdir_p(File.join(KnapsackPro.root, 'tmp'))
    end
  end

  config.after(:each) do
    if RSpec.current_example.metadata[:clear_tmp]
      FileUtils.rm_r(File.join(KnapsackPro.root, 'tmp'))
    end
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
knapsack_pro-0.55.0 spec/spec_helper.rb
knapsack_pro-0.54.0 spec/spec_helper.rb
knapsack_pro-0.53.0 spec/spec_helper.rb
knapsack_pro-0.52.0 spec/spec_helper.rb
knapsack_pro-0.51.0 spec/spec_helper.rb
knapsack_pro-0.50.1 spec/spec_helper.rb
knapsack_pro-0.50.0 spec/spec_helper.rb
knapsack_pro-0.49.0 spec/spec_helper.rb
knapsack_pro-0.48.0 spec/spec_helper.rb
knapsack_pro-0.47.0 spec/spec_helper.rb
knapsack_pro-0.46.0 spec/spec_helper.rb
knapsack_pro-0.45.0 spec/spec_helper.rb
knapsack_pro-0.44.0 spec/spec_helper.rb
knapsack_pro-0.43.0 spec/spec_helper.rb
knapsack_pro-0.42.0 spec/spec_helper.rb
knapsack_pro-0.41.0 spec/spec_helper.rb
knapsack_pro-0.40.0 spec/spec_helper.rb
knapsack_pro-0.39.0 spec/spec_helper.rb
knapsack_pro-0.38.0 spec/spec_helper.rb
knapsack_pro-0.37.0 spec/spec_helper.rb