Sha256: 97c89f04cd17926528f020572f82d2ab45fdcb8451c03b5c10f0e850e7ea2f2b

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require "spec_helper"

RSpec.describe PubsubNotifier::Pubsub do
  describe "#call" do
    let(:pubsub) { described_class.new }

    subject { pubsub.call(:event) }

    it "calls broadcast" do
      expect(pubsub).to receive(:broadcast).and_return(true)
      is_expected.to be true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pubsub_notifier-0.1.2 spec/lib/pubsub_spec.rb