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

- old
+ new

@@ -52,9 +52,15 @@ c = stubbable_client allow(c).to receive_messages(:mentions_timeline => 1.upto(result_count).collect { |i| fake_tweet(i, id_base)}) c end +def fake_home_timeline(result_count = 0, id_base = 0) + c = stubbable_client + allow(c).to receive_messages(:home_timeline => 1.upto(result_count).collect { |i| fake_tweet(i, id_base)}) + c +end + def fake_followers(count) c = stubbable_client allow(c).to receive_messages(:followers => 1.upto(count).collect { |i| fake_follower(i) }) c end