Remove warning in WebPush controller test

This commit is contained in:
Karina Kwiatek 2023-01-03 17:32:01 +01:00 committed by Andreas Nedbal
parent ae52810aae
commit 16b9262bed
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ describe Ajax::WebPushController, :ajax_controller, type: :controller do
it "removes the subscription" do
subject
expect { subscription.reload }.to raise_error(ActiveRecord::RecordNotFound)
expect { other_subscription.reload }.not_to raise_error(ActiveRecord::RecordNotFound)
expect(WebPushSubscription.exists?(subscription.id)).to eq(false)
expect(WebPushSubscription.exists?(other_subscription.id)).to eq(true)
end
include_examples "returns the expected response"