spec/search_spec.rb in chatterbot-0.9.2 vs spec/search_spec.rb in chatterbot-0.9.3

- old
+ new

@@ -11,11 +11,11 @@ it "calls update_since_id" do bot = test_bot data = fake_search(100, 1) allow(bot).to receive(:client).and_return(data) - expect(bot).to receive(:update_since_id).with(data.search) + expect(bot).to receive(:update_since_id).with(data.search[0]) bot.search("foo") end it "accepts multiple searches at once" do @@ -60,10 +60,10 @@ it "updates since_id when complete" do bot = test_bot results = fake_search(1000, 1) allow(bot).to receive(:client).and_return(results) - expect(bot).to receive(:update_since_id).with(results.search) + expect(bot).to receive(:update_since_id).with(results.search[0]) bot.search("foo") end it "iterates results" do bot = test_bot