Sha256: e16b3e5ca727f8e330805534a00bb716838f337c3cf661b507a2351df6216d63

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

require "spec_helper"

RSpec.describe Ribose::Stream do
  describe ".all" do
    it "retreives the list of notifications stream" do
      stub_ribose_stream_list_api
      stream = Ribose::Stream.all

      expect(stream.notifications.count).to eq(3)
      expect(stream.notifications.first.id).not_to be_nil
      expect(stream.notifications.first.data.first.info.action).to eq("create")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ribose-0.5.0 spec/ribose/stream_spec.rb
ribose-0.4.1 spec/ribose/stream_spec.rb
ribose-0.4.0 spec/ribose/stream_spec.rb
ribose-0.3.2 spec/ribose/stream_spec.rb
ribose-0.3.1 spec/ribose/stream_spec.rb
ribose-0.3.0 spec/ribose/stream_spec.rb
ribose-0.2.0 spec/ribose/stream_spec.rb