spec/unit/rest/channel_spec.rb in ably-1.0.7 vs spec/unit/rest/channel_spec.rb in ably-1.1.0

- old
+ new

@@ -1,9 +1,16 @@ # encoding: utf-8 require 'spec_helper' describe Ably::Rest::Channel do - let(:client) { instance_double('Ably::Rest::Client', encoders: [], post: instance_double('Faraday::Response', status: 201)) } + let(:client) do + instance_double( + 'Ably::Rest::Client', + encoders: [], + post: instance_double('Faraday::Response', status: 201), + idempotent_rest_publishing: false, + ) + end let(:channel_name) { 'unique' } subject { Ably::Rest::Channel.new(client, channel_name) } describe '#initializer' do