Sha256: f714b633b98442a7df156f933ad3123c9da7b2f3bc045f5ea67b19543a248669

Contents?: true

Size: 752 Bytes

Versions: 7

Compression:

Stored size: 752 Bytes

Contents

require "rspec"
require "webmock"
require "vcr"

require "redd"

VCR.configure do |config|
  config.cassette_library_dir = "spec/cassettes"
  config.default_cassette_options = {record: :new_episodes}
  config.hook_into :webmock
end

RSpec.configure do |config|
  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.profile_examples = 10
  config.order = :random
  Kernel.srand config.seed
  
  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_partial_doubles = true
  end

  config.around :each do |example|
    VCR.use_cassette example.metadata[:full_description] do
      example.run
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redd-0.4.3 spec/spec_helper.rb
redd-0.4.2 spec/spec_helper.rb
redd-0.4.1 spec/spec_helper.rb
redd-0.4.0 spec/spec_helper.rb
redd-0.3.0 spec/spec_helper.rb
redd-0.2.0 spec/spec_helper.rb
redd-0.1.6 spec/spec_helper.rb