Sha256: 087ffa1980807baf4fb4f66098a7770e1cbc2ccf12343c3fabd7035dde6f6733
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe Lita::Handlers::GoForIt, lita_handler: true do it 'listens for messages and routes them' do expect(subject).to route('go for it').to :gopher expect(subject).to route('goes for it').to :gopher expect(subject).to route('going for it').to :gopher expect(subject).to route('went for it').to :gopher end it 'does not route another plugin message' do expect(subject).to_not route('sandwich') end it 'replies with a URL' do send_message('go for it') expect(replies.last).to match(/http/) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-goforit-0.1.0 | spec/lita/handlers/goforit_spec.rb |