spec/reader_spec.rb in dexby-0.1.0 vs spec/reader_spec.rb in dexby-0.1.1

- old
+ new

@@ -130,12 +130,13 @@ expect{ subject.read }.to raise_error StandardError end end context "where reads return 500s" do before(:example) do - expect(fake_connection_class).to receive(:read).and_return([[],500]) + expect(fake_connection_class).to receive(:read).and_return([[],500],[[],500]) end it "raises exception" do + expect(fake_connection_class).to receive(:login).and_return(['banana', 200]) expect{ subject.read }.to raise_error StandardError end end end end