Sha256: b54fa414a3c6d3a3d87577c1e2f5d145f444d9d371cc06153cb76e1c04d9fc20

Contents?: true

Size: 367 Bytes

Versions: 17

Compression:

Stored size: 367 Bytes

Contents

module G5Authenticatable
  module Test
    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

17 entries across 17 versions & 1 rubygems

Version Path
g5_authenticatable-0.9.1.pre.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.8.1.pre lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.8.0 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.8.0.beta1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.5 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.5.beta lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.4 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.4.beta.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.3 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.7.0 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.6.0 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.5.1 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.5.0 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.4.2 lib/g5_authenticatable/test/env_helpers.rb
g5_authenticatable-0.4.1 lib/g5_authenticatable/test/env_helpers.rb