Sha256: 1d905c344702d36cfba2fdb9fd34de6dab8fc5978fb73fd92b827be9a4b62d33

Contents?: true

Size: 1.15 KB

Versions: 24

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true
# typed: true

require 'simplecov'
SimpleCov.start

if ENV['CI'] == 'true'
  require 'codecov'
  SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))

require 'rubygems'
require 'rspec'
require 'webmock/rspec'
require 'workos'
require 'vcr'

SPEC_ROOT = File.dirname __FILE__

VCR.configure do |config|
  config.cassette_library_dir = 'spec/support/fixtures/vcr_cassettes'
  config.filter_sensitive_data('<API_KEY>') { WorkOS.key }
  config.hook_into :webmock
end

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

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

  config.shared_context_metadata_behavior = :apply_to_host_groups

  WebMock::API.prepend(Module.new do
    extend self

    # Disable VCR when a WebMock stub is created
    # for clearer spec failure messaging
    def stub_request(*args)
      VCR.turn_off!
      super
    end
  end)

  config.before(:each) { VCR.turn_on! }
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
workos-0.10.2 spec/spec_helper.rb
workos-0.10.1 spec/spec_helper.rb
workos-0.10.0 spec/spec_helper.rb
workos-0.9.2 spec/spec_helper.rb
workos-0.9.1 spec/spec_helper.rb
workos-0.9.0 spec/spec_helper.rb
workos-0.8.1 spec/spec_helper.rb
workos-0.8.0 spec/spec_helper.rb
workos-0.7.0 spec/spec_helper.rb
workos-0.6.0 spec/spec_helper.rb
workos-0.5.0 spec/spec_helper.rb
workos-0.4.2 spec/spec_helper.rb
workos-0.4.1 spec/spec_helper.rb
workos-0.4.0 spec/spec_helper.rb
workos-0.3.3 spec/spec_helper.rb
workos-0.3.2 spec/spec_helper.rb
workos-0.3.1 spec/spec_helper.rb
workos-0.3.0 spec/spec_helper.rb
workos-0.2.3 spec/spec_helper.rb
workos-0.2.2 spec/spec_helper.rb