Sha256: 0e43014d7d71014379ab19f3148b1ce66fee50974989f61a90c897c24f234b86

Contents?: true

Size: 454 Bytes

Versions: 18

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module G5Authenticatable
  module Test
    # Helper methods for stubbing environment variables
    module EnvHelpers
      def stub_env_var(name, value)
        stub_const('ENV', ENV.to_hash.merge(name => value))
      end
    end
  end
end

RSpec.configure do |config|
  config.include G5Authenticatable::Test::EnvHelpers

  config.before(:each) do
    stub_env_var('G5_AUTH_ENDPOINT', 'https://test.auth.host')
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.4.rc.3 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.4.rc.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.4.rc.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2.pre.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2.rc.5 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2.rc.4 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2.rc.3 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2.rc.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.2.rc.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.1.0 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.0.0 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.0.0.pre.4 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.0.0.pre.3 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.0.0.pre.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-1.0.0.pre.1 lib/g5_authenticatable/test/env_helpers.rb