spec/streaming_spec.rb in chatterbot-2.0.0.pre vs spec/streaming_spec.rb in chatterbot-2.0.2

- old
+ new

@@ -7,10 +7,11 @@ describe "streaming_tweet_handler" do before(:each) do bot.skip_run = true + bot.streaming = true allow(bot.client).to receive(:user).and_return(user) end it "defaults to home_timeline" do bot.register_handler(:home_timeline) { @result = :home_timeline } @@ -29,9 +30,10 @@ end describe "handle_streaming_object" do before(:each) { bot.skip_run = true + bot.streaming = true allow(bot.client).to receive(:user).and_return(user) } describe "Twitter::Tweet" do it "works if no handler" do