Sha256: 4f1f2f193cc61f0a4c176e8fc22c9dbbc3fb94e3f6637d83697f8fbab4d0053e
Contents?: true
Size: 415 Bytes
Versions: 5
Compression:
Stored size: 415 Bytes
Contents
require 'spec_helper' RSpec.describe Pubsubstub::StreamAction do let(:app) { Pubsubstub::PublishAction.new } let(:channel) { Pubsubstub::Channel.new('foo') } it "adds the event to the scrollback" do expect { post '/?channels[]=foo', {'event' => 'hello', 'data' => 'world!'} expect(last_response.status).to eq 200 }.to change { channel.scrollback(since: 0).size }.from(0).to(1) end end
Version data entries
5 entries across 5 versions & 1 rubygems