spec/acceptance/rest/channel_spec.rb in ably-0.8.3 vs spec/acceptance/rest/channel_spec.rb in ably-0.8.4

- old
+ new

@@ -20,9 +20,18 @@ it 'publishes the message and return true indicating success' do expect(channel.publish(name, data)).to eql(true) expect(channel.history.items.first.name).to eql(name) expect(channel.history.items.first.data).to eql(data) end + + context 'and additional attributes' do + let(:client_id) { random_str } + + it 'publishes the message with the attributes and return true indicating success' do + expect(channel.publish(name, data, client_id: client_id)).to eql(true) + expect(channel.history.items.first.client_id).to eql(client_id) + end + end end context 'with an array of Hash objects with :name and :data attributes' do let(:messages) do 10.times.map do |index|