Skip to content

Commit

Permalink
Stub prod env in service specs so that feature flag tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwcodes committed Oct 25, 2024
1 parent 442e5a6 commit eddd68f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/va_notify/spec/lib/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
before(:example, test_service: false) do
test_base_url = 'http://fakeapi.com'
allow_any_instance_of(VaNotify::Configuration).to receive(:base_path).and_return(test_base_url)
Rails.stub(env: ActiveSupport::StringInquirer.new("production"))

Check failure on line 10 in modules/va_notify/spec/lib/service_spec.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
end

let(:test_api_key) { 'test-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa-bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb' }
Expand Down

0 comments on commit eddd68f

Please sign in to comment.