spec/unit/esearch/cluster/index_spec.rb in esearch-0.2.0 vs spec/unit/esearch/cluster/index_spec.rb in esearch-0.2.1

- old
+ new

@@ -2,10 +2,10 @@ describe Esearch::Cluster, '#index' do subject { object.index(name) } let(:object) { described_class.new(connection) } - let(:connection) { mock('Connection') } + let(:connection) { double('Connection') } let(:name) { 'foo' } it { should eql(Esearch::Index.new(connection, name)) } end