spec/dsl_spec.rb in chatterbot-0.5.1 vs spec/dsl_spec.rb in chatterbot-0.6.1
- old
+ new
@@ -60,18 +60,24 @@
@bot.should_receive(:exclude=).with(["foo", "bar"])
exclude "foo, bar"
end
end
+ describe "search" do
+ it "passes along to bot object" do
+ @bot.should_receive(:search).with("foo", { })
+ search("foo")
+ end
- it "#search passes along to bot object" do
- @bot.should_receive(:search).with("foo", { })
- search("foo")
+ it "passes multiple queries along to bot object" do
+ @bot.should_receive(:search).with(["foo","bar"], { })
+ search(["foo","bar"])
+ end
end
- it "#search passes along to bot object" do
- @bot.should_receive(:search).with(["foo","bar"], { })
- search(["foo","bar"])
+ it "#retweet passes along to bot object" do
+ @bot.should_receive(:retweet).with(1234)
+ retweet(1234)
end
it "#replies passes along to bot object" do
@bot.should_receive(:replies)
replies