Skip to content

Commit

Permalink
🧪 Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvillen committed Dec 18, 2024
1 parent 5d9f01e commit f2c1939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/subscribers/proxy_config_event_subscriber_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class ProxyConfigEventSubscriberTest < ActiveSupport::TestCase
proxy_rule = FactoryBot.build_stubbed(:proxy_rule, proxy: proxy)
event = ProxyConfigs::AffectingObjectChangedEvent.create(proxy, proxy_rule)

ProxyConfigAffectingChangeWorker.expects(:perform_later).with(event.event_id)
Proxy.stubs(:find).with(event.proxy_id).returns(proxy)

proxy.affecting_change_history.expects(:touch)

ProxyConfigEventSubscriber.new.call(event)
end
Expand Down

0 comments on commit f2c1939

Please sign in to comment.