spec/bot_spec.rb in chatterbot-0.7.1 vs spec/bot_spec.rb in chatterbot-0.9.0

- old
+ new

@@ -1,5 +1,17 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Chatterbot::Bot" do + after(:each) do + b = Chatterbot::Bot.new(:reset_since_id => false) + end + describe "reset_bot?" do + it "should call reset_since_id and update_config" do + expect_any_instance_of(Chatterbot::Bot).to receive(:reset_since_id) + expect_any_instance_of(Chatterbot::Bot).to receive(:update_config) + allow_any_instance_of(Chatterbot::Bot).to receive(:exit) + b = Chatterbot::Bot.new(:reset_since_id => true) + end + + end end