# frozen_string_literal: true
require "bundler/setup"
require "glosbe/translate"

require "pry"

require "vcr"
require "webmock/rspec"

RSpec.configure do |config|
  config.example_status_persistence_file_path = ".rspec_status"
  config.disable_monkey_patching!
  config.extend VCR::RSpec::Macros
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

VCR.configure do |config|
  config.cassette_library_dir = 'spec/cassettes'
  config.hook_into :webmock
end

WebMock.disable_net_connect!(allow_localhost: true)

# frozen_string_literal: true
require "bundler/setup"
require "glosbe/translate"

require "pry"

require "vcr"
require "webmock/rspec"

RSpec.configure do |config|
  config.example_status_persistence_file_path = ".rspec_status"
  config.disable_monkey_patching!
  config.extend VCR::RSpec::Macros
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  unless ENV["CI"]
    config.filter_run focus: true
    config.run_all_when_everything_filtered = true
  end
end

VCR.configure do |config|
  config.cassette_library_dir = 'spec/cassettes'
  config.hook_into :webmock
end

WebMock.disable_net_connect!(allow_localhost: true)

Allow focus for specs when not on CI
Allow focus for specs when not on CI
