diff --git a/spec/acceptance/realtime/channel_spec.rb b/spec/acceptance/realtime/channel_spec.rb index 4286c6a9..25f4a7c6 100644 --- a/spec/acceptance/realtime/channel_spec.rb +++ b/spec/acceptance/realtime/channel_spec.rb @@ -830,10 +830,8 @@ def disconnect_transport it 'does the detach operation once the connection state is connected (#RTL5h)' do connection.once(:connected) do connection.once(:disconnected) do - channel.on :attaching do - channel.detach - end channel.attach + channel.detach connection.once(:connected) do channel.once(:attached) do channel.once(:detached) do