{"id":79976,"library":"stub-env","title":"StubEnv","description":"RSpec helper for stubbing ENV values in tests.","status":"active","version":"1.0.4","language":"ruby","source_language":null,"source_url":"https://github.com/littleowllabs/stub_env","tags":["testing","rspec","environment","stubbing"],"install":[{"cmd":"gem install stub_env","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'stub_env', '~> 1.0.4'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"StubEnv","correct":"require 'stub_env'"}],"quickstart":{"code":"require 'stub_env'\n\nRSpec.describe 'my test' do\n  before { stub_env('MY_VAR' => 'value') }\n  it { expect(ENV['MY_VAR']).to eq('value') }\nend","lang":"ruby","description":"Stub ENV variables in RSpec tests"},"warnings":[],"env_vars":null,"search_vec":"'env':6 'environ':12 'helper':3 'rspec':2,11 'stub':5,13 'stubenv':1 'test':9,10 'valu':7","created_at":"2026-06-18T05:08:42.170008+00:00","updated_at":"2026-06-18T05:08:42.170008+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/littleowllabs/stub_env","github":"https://github.com/littleowllabs/stub_env","docs":"http://www.rubydoc.info/gems/stub_env/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}