spec/logging_spec.rb in chatterbot-0.2.7 vs spec/logging_spec.rb in chatterbot-0.2.8
- old
+ new
@@ -8,11 +8,11 @@
@bot.stub!(:logger).and_return(@logger)
end
it "should call logger on debug" do
@bot.should_receive(:logging?).and_return(true)
- @logger.should_receive(:debug).with("hi!")
+ @logger.should_receive(:debug).with("rspec hi!")
@bot.debug "hi!"
end
it "should not call logger when not logging desired" do
@bot.should_receive(:logging?).and_return(false)
@@ -20,10 +20,10 @@
@bot.debug "hi!"
end
it "should call logger and also print output when critical" do
@bot.should_receive(:logging?).and_return(true)
- @logger.should_receive(:debug).with("hi!")
+ @logger.should_receive(:debug).with("rspec hi!")
@bot.should_receive(:puts).with("hi!")
@bot.critical "hi!"
end
end