spec/mongo/operation/limited_spec.rb in mongo-2.5.1 vs spec/mongo/operation/limited_spec.rb in mongo-2.5.2

- old
+ new

@@ -16,11 +16,11 @@ let(:spec) do { :skip => 5 } end it 'returns a limit of -1' do - expect(limited.options).to eq({ :skip => 5, :limit => -1 }) + expect(limited.send(:options)).to eq({ :skip => 5, :limit => -1 }) end end context 'when a limit is already provided' do @@ -29,21 +29,21 @@ let(:spec) do { :skip => 5, :limit => -1 } end it 'returns a limit of -1' do - expect(limited.options).to eq({ :skip => 5, :limit => -1 }) + expect(limited.send(:options)).to eq({ :skip => 5, :limit => -1 }) end end context 'when the limit is not -1' do let(:spec) do { :skip => 5, :limit => 5 } end it 'returns a limit of -1' do - expect(limited.options).to eq({ :skip => 5, :limit => -1 }) + expect(limited.send(:options)).to eq({ :skip => 5, :limit => -1 }) end end end end end