Skip to content

Commit

Permalink
stubbing out the favicon request in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBitZesty committed Aug 29, 2024
1 parent 9bb0e70 commit 0e9decb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def matches?(source_file)
config.include(Shoulda::Matchers::ActiveModel, type: :model)
config.include(Shoulda::Matchers::ActiveRecord, type: :model)
end

config.before(:each, type: :feature) do
allow_any_instance_of(ActionDispatch::Request).to receive(:path_info).and_return('/') if page.current_path == '/favicon.ico'
end
end

def stub_sendgrid_bounced_emails_check_request(email)
Expand Down

0 comments on commit 0e9decb

Please sign in to comment.