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