Sha256: e6f32bfaffb20d43ebc1368703c2442db0716d9064375604b421a957710ccbf4

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require "rspec/stubbed_env/version"

# This Gem
require "rspec/stubbed_env/test_helpers"
require "rspec/stubbed_env/config"

#
# ENV stubbing is opt-in, via a shared context, rather than global
#
# describe 'my stubbed test' do
#   include_context 'with stubbed env'
#   before do
#     stub_env('FOO' => 'is bar')
#   end
#   it 'does a thing' do
#     expect(ENV['FOO']).to eq('is bar')
#   end
# end
#
module RSpec
  # Gem Namespace
  module StubbedEnv
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-stubbed_env-1.0.1 lib/rspec/stubbed_env.rb