spec/tweet_spec.rb in chatterbot-0.5.1 vs spec/tweet_spec.rb in chatterbot-0.6.1
- old
+ new
@@ -13,11 +13,11 @@
it "calls client.update with the right values" do
bot = test_bot
bot.should_receive(:require_login).and_return(true)
- bot.stub!(:client).and_return(mock(TwitterOAuth::Client))
+ bot.stub!(:client).and_return(mock(Twitter::Client))
bot.stub!(:debug_mode?).and_return(false)
test_str = "test!"
bot.client.should_receive(:update).with(test_str, {})
@@ -26,11 +26,11 @@
it "doesn't tweet when debug_mode? is set" do
bot = test_bot
bot.should_receive(:require_login).and_return(true)
- bot.stub!(:client).and_return(mock(TwitterOAuth::Client))
+ bot.stub!(:client).and_return(mock(Twitter::Client))
bot.stub!(:debug_mode?).and_return(true)
bot.client.should_not_receive(:update)
bot.tweet "no tweet!"
@@ -45,11 +45,11 @@
end
it "calls client.update with the right values" do
bot = test_bot
bot.should_receive(:require_login).and_return(true)
- bot.stub!(:client).and_return(mock(TwitterOAuth::Client))
+ bot.stub!(:client).and_return(mock(Twitter::Client))
bot.stub!(:debug_mode?).and_return(false)
test_str = "test!"
@@ -62,10 +62,10 @@
it "doesn't reply when debug_mode? is set" do
bot = test_bot
bot.should_receive(:require_login).and_return(true)
- bot.stub!(:client).and_return(mock(TwitterOAuth::Client))
+ bot.stub!(:client).and_return(mock(Twitter::Client))
bot.stub!(:debug_mode?).and_return(true)
bot.client.should_not_receive(:update)
bot.reply "no reply test!", {:id => 100}