<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://bridgetownrb.com/" version="2.2.2">Bridgetown</generator><link href="https://peterboling.com/feed/rspec_stubbed_env.xml" rel="self" type="application/atom+xml" /><link href="https://peterboling.com/" rel="alternate" type="text/html" /><updated>2026-11-15T23:03:36+00:00</updated><id>https://peterboling.com/feed/rspec_stubbed_env.xml</id><title type="html">Peter Boling | Rspec_stubbed_env</title><subtitle>Yet Another Paradigm by Peter Boling, featuring technical blog posts about Ruby, JavaScript, TypeScript, Go, Python, DevOps, and various open source projects. Ramblings, mumblings, cv/resume, technical blog, and documentation for many popular, and unpopular, RubyGems and other FLOSS projects, including oauth2, omniauth-identity, sanitize_email, debug_logging, flag_shih_tzu, gem_bench, etc. Semi-lifely state-of-the-petris updates.</subtitle><author><name>Peter Boling</name><email>floss@galtzo.com</email></author><entry><title type="html">rspec-stubbed_env v1.0.4 released!</title><link href="https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.4-released!/" rel="alternate" type="text/html" title="rspec-stubbed_env v1.0.4 released!" /><published>2025-08-05T06:51:56+00:00</published><updated>2025-08-05T06:51:56+00:00</updated><id>https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.4-released!/</id><content type="html" xml:base="https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.4-released!/">&lt;h2 id=&quot;whats-changed&quot;&gt;What’s Changed&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;👷 Improve coverage workflow by @pboling in https://github.com/galtzo-floss/rspec-stubbed_env/pull/21&lt;/li&gt;
  &lt;li&gt;🔧 Add discord_url to metadata by @pboling in https://github.com/galtzo-floss/rspec-stubbed_env/pull/22&lt;/li&gt;
  &lt;li&gt;📝 Dedupe badges by @pboling in https://github.com/galtzo-floss/rspec-stubbed_env/pull/24&lt;/li&gt;
  &lt;li&gt;📝 Use details collapsible tag to declutter by @pboling in https://github.com/galtzo-floss/rspec-stubbed_env/pull/25&lt;/li&gt;
  &lt;li&gt;📝 Fix instructions for high security gem installation by @pboling in https://github.com/galtzo-floss/rspec-stubbed_env/pull/27&lt;/li&gt;
  &lt;li&gt;💚 Try qltysh/qlty-action/coverage@v1 by @pboling in https://github.com/galtzo-floss/rspec-stubbed_env/pull/28&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Full Changelog&lt;/strong&gt;: https://github.com/galtzo-floss/rspec-stubbed_env/compare/v1.0.3…v1.0.4&lt;/p&gt;</content><category term="release" /><category term="rspec-stubbed_env" /><category term="v1.0.4" /></entry><entry><title type="html">rspec-stubbed_env v1.0.3 released!</title><link href="https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.3-released!/" rel="alternate" type="text/html" title="rspec-stubbed_env v1.0.3 released!" /><published>2025-07-29T02:57:09+00:00</published><updated>2025-07-29T02:57:09+00:00</updated><id>https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.3-released!/</id><content type="html" xml:base="https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.3-released!/">&lt;h2 id=&quot;103---2025-07-28&quot;&gt;&lt;a href=&quot;https://gitlab.com/pboling/rspec-stubbed_env/-/compare/v1.0.2...v1.0.3&quot;&gt;1.0.3&lt;/a&gt; - 2025-07-28&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;TAG: &lt;a href=&quot;https://gitlab.com/pboling/rspec-stubbed_env/-/tags/v1.0.3&quot;&gt;v1.0.3&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;COVERAGE: 100.00% – 73/73 lines in 5 files&lt;/li&gt;
  &lt;li&gt;BRANCH COVERAGE: 100.00% – 10/10 branches in 5 files&lt;/li&gt;
  &lt;li&gt;85.71% documented
    &lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;
  &lt;/li&gt;
  &lt;li&gt;More documentation&lt;/li&gt;
  &lt;li&gt;Tracking maintainability and coverage with QLTY.sh&lt;/li&gt;
  &lt;li&gt;Documentation site
    &lt;ul&gt;
      &lt;li&gt;https://rspec-stubbed-env.galtzo.com
        &lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;gemspec metadata&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;whats-changed-autogenerated&quot;&gt;What’s Changed (autogenerated)&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;💚 Test against committed Gemfile.lock by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/13&lt;/li&gt;
  &lt;li&gt;👷 Add QLTY.sh config by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/14&lt;/li&gt;
  &lt;li&gt;➕ rspec_junit_formatter by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/15&lt;/li&gt;
  &lt;li&gt;👷 Lock/Unlock Deps Pattern by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/16&lt;/li&gt;
  &lt;li&gt;✏️ Fix links by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/17&lt;/li&gt;
  &lt;li&gt;📝 Docs Site by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/18&lt;/li&gt;
  &lt;li&gt;📝 DVCS by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/19&lt;/li&gt;
  &lt;li&gt;Release/v1.0.3 by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/20&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Full Changelog&lt;/strong&gt;: https://github.com/pboling/rspec-stubbed_env/compare/v1.0.2…v1.0.3&lt;/p&gt;</content><category term="release" /><category term="rspec-stubbed_env" /><category term="v1.0.3" /></entry><entry><title type="html">rspec-stubbed_env v1.0.2 released!</title><link href="https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.2-released!/" rel="alternate" type="text/html" title="rspec-stubbed_env v1.0.2 released!" /><published>2025-06-01T01:03:07+00:00</published><updated>2025-06-01T01:03:07+00:00</updated><id>https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.2-released!/</id><content type="html" xml:base="https://peterboling.com/rspec_stubbed_env/rspec-stubbed_env-v1.0.2-released!/">&lt;h2 id=&quot;whats-changed&quot;&gt;What’s Changed&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Allowing passing keys to stub directly to include_context by @Darhazer in https://github.com/pboling/rspec-stubbed_env/pull/11&lt;/li&gt;
  &lt;li&gt;Release v1.0.2 by @pboling in https://github.com/pboling/rspec-stubbed_env/pull/12&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;new-contributors&quot;&gt;New Contributors&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;@Darhazer made their first contribution in https://github.com/pboling/rspec-stubbed_env/pull/11&lt;/li&gt;
  &lt;li&gt;@pboling made their first contribution in https://github.com/pboling/rspec-stubbed_env/pull/12&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Full Changelog&lt;/strong&gt;: https://github.com/pboling/rspec-stubbed_env/compare/v1.0.1…v1.0.2&lt;/p&gt;</content><category term="release" /><category term="rspec-stubbed_env" /><category term="v1.0.2" /></entry><entry><title type="html">Introducing rspec-stubbed_env</title><link href="https://peterboling.com/rspec_stubbed_env/introducing-rspec-stubbed_env/" rel="alternate" type="text/html" title="Introducing rspec-stubbed_env" /><published>2018-10-06T08:30:16+00:00</published><updated>2018-10-06T08:30:16+00:00</updated><id>https://peterboling.com/rspec_stubbed_env/introducing-rspec-stubbed_env/</id><content type="html" xml:base="https://peterboling.com/rspec_stubbed_env/introducing-rspec-stubbed_env/">&lt;h2 id=&quot;env-stubbing-via-a-shared-context-for-more-powerful-tests&quot;&gt;ENV stubbing via a shared context for more powerful tests.&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://img.shields.io/gem/rt/rspec-stubbed_env.svg&quot; alt=&quot;Total Downloads&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://img.shields.io/gem/rd/rspec-stubbed_env.svg&quot; alt=&quot;Downloads Today&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://travis-ci.org/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://travis-ci.org/pboling/rspec-stubbed_env.svg?branch=master&quot; alt=&quot;Build Status&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://codeclimate.com/github/pboling/rspec-stubbed_env/maintainability&quot;&gt;&lt;img src=&quot;https://api.codeclimate.com/v1/badges/07a1d53634c61154efae/maintainability&quot; alt=&quot;Maintainability&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://codeclimate.com/github/pboling/rspec-stubbed_env/test_coverage&quot;&gt;&lt;img src=&quot;https://api.codeclimate.com/v1/badges/07a1d53634c61154efae/test_coverage&quot; alt=&quot;Test Coverage&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/pboling/rspec-stubbed_env/network&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/forks/pboling/rspec-stubbed_env.svg?style=social&quot; alt=&quot;Network&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/pboling/rspec-stubbed_env/stargazers&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/stars/pboling/rspec-stubbed_env.svg?style=social&quot; alt=&quot;Stars&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://rubygems.org/gems/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://img.shields.io/gem/v/rspec-stubbed_env.svg&quot; alt=&quot;Version&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://travis-ci.org/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://img.shields.io/travis/pboling/rspec-stubbed_env.svg&quot; alt=&quot;Build&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://inch-ci.org/github/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;http://inch-ci.org/github/pboling/rspec-stubbed_env.svg&quot; alt=&quot;Documentation&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://depfu.com/github/pboling/rspec-stubbed_env?project_id=5884&quot;&gt;&lt;img src=&quot;https://badges.depfu.com/badges/a48948dd503f23a440f2c17910563f43/count.svg&quot; alt=&quot;Depfu&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.codetriage.com/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://www.codetriage.com/pboling/rspec-stubbed_env/badges/users.svg&quot; alt=&quot;Open Source Helpers&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://gitter.im/pboling/rspec-stubbed_env&quot;&gt;&lt;img src=&quot;https://img.shields.io/gitter/room/pboling/rspec-stubbed_env.svg&quot; alt=&quot;Chat&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://opensource.org/licenses/MIT&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/License-MIT-green.svg&quot; alt=&quot;License: MIT&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;installation&quot;&gt;Installation&lt;/h2&gt;

&lt;p&gt;Add this line to your application’s Gemfile:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rspec-stubbed_env&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;group: :test&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And then execute:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ bundle
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Or install it yourself as:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ gem install rspec-stubbed_env
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You must configure RSpec to use the &lt;code class=&quot;highlighter-rouge&quot;&gt;:expect&lt;/code&gt; syntax, or some compatible alternative.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;no&quot;&gt;RSpec&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;configure&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;config&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;expect_with&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:rspec&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;syntax&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:expect&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Require the library in your spec/test helper somewhere:&lt;/p&gt;
&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;require &apos;rspec/stubbed_env&apos;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;usage&quot;&gt;Usage&lt;/h2&gt;

&lt;p&gt;ENV stubbing:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;is opt-in, via a shared context, rather than global.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;does not&lt;/em&gt; affect the real ENV at all.  It is a true stub.&lt;/li&gt;
  &lt;li&gt;has the same scope as a &lt;code class=&quot;highlighter-rouge&quot;&gt;before&lt;/code&gt;, &lt;code class=&quot;highlighter-rouge&quot;&gt;subject&lt;/code&gt;, or &lt;code class=&quot;highlighter-rouge&quot;&gt;let&lt;/code&gt; at the same level.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;See the spec suite for detailed examples.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# This is normal, without stubbing, ENV is not set&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;describe&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;vanilla&apos;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;it&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;has no ENV stub&apos;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;expect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;ENV&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;FOO&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;be_nil&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# With a stubbed ENV!&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;describe&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;my stubbed test&apos;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;include_context&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;with stubbed env&apos;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;before&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;stub_env&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;FOO&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;is bar&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;it&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;has a value&apos;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;expect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;ENV&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;FOO&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;eq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;is bar&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><category term="development" /><category term="ruby" /><category term="rails" /><category term="rubygems" /><category term="rspec" /><category term="rspec-stubbed_env" /></entry></feed>