Skip to content

Commit

Permalink
Update failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Jul 24, 2024
1 parent 25f3879 commit 8ec9db3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/cable/channel/subscribe_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ class TestChannel14 < TestChannel13
context "with rejection in before_subscribe" do
let(:klass) { CableChannelSubscribeSpec::TestChannel5 }

# this test case doesn't seem logical to me - I would expect `subscribed` to not be called if
# the subscription is rejected in `before_subscribe`, but that's how ActionCable works as of v7.1.3.4;
it "correctly runs the subscribed callback" do
expect(verifier).to receive(:subscribed).once
expect(verifier).to receive(:after_subscribe).once
expect(verifier).not_to receive(:subscribed)
expect(verifier).not_to receive(:after_subscribe)
subject
end
end
Expand Down

0 comments on commit 8ec9db3

Please sign in to comment.