Sha256: 8f0d8158cee1d531c44ba5ada3b5f19f2c782455b1173c77fe6aae52bce417ea
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Chatterbot::Bot" do before(:each) do @bot = Chatterbot::Bot.new end describe "REST API" do it "should work" do allow(@bot).to receive(:require_login).and_return(false) allow(@bot).to receive(:client).and_return(fake_home_timeline(3)) @bot.register_handler(:home_timeline) {} @bot.run! end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-2.2.0 | spec/bot_spec.rb |
chatterbot-2.1.0 | spec/bot_spec.rb |