File: stubbed_env.rb

package info (click to toggle)
ruby-rspec-stubbed-env 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 188 kB
  • sloc: ruby: 194; sh: 4; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

require 'rspec/stubbed_env/version'

# External Gems
require 'rspec'

# 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