lib/submodules/ably-ruby/spec/unit/rest/channel_spec.rb in ably-rest-1.0.6 vs lib/submodules/ably-ruby/spec/unit/rest/channel_spec.rb in ably-rest-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