Registry / testing / stub-env

stub-env

JSON →
library1.0.4rbrubygemsunverified

RSpec helper for stubbing ENV values in tests.

gem install stub_env
INSTALL
IMPORT
SIG · STUB-ENV
S
stub-env
testingrubyv1.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StubEnv
✓ require 'stub_env'

Stub ENV variables in RSpec tests

require 'stub_env' RSpec.describe 'my test' do before { stub_env('MY_VAR' => 'value') } it { expect(ENV['MY_VAR']).to eq('value') } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
2
Resources
stub-env — gem install stub-env · libregistry