spec/helpers_spec.rb in chatterbot-0.6.3 vs spec/helpers_spec.rb in chatterbot-0.6.5
- old
+ new
@@ -26,11 +26,11 @@
it "should accept strings" do
@bot.from_user("x").should == "x"
end
- it "should accept :from_user" do
- @bot.from_user(:from_user => "x").should == "x"
+ it "should accept :from_user tweet" do
+ @bot.from_user(Twitter::Tweet.new(:id => 123, :from_user => "x")).should == "x"
end
it "should accept :screen_name" do
@bot.from_user(:user => {:screen_name => "x"}).should == "x"
end