Sha256: 80d478bd086b9893d3d9d5f0ff6cabcb9d5c9424a07120889dd3e927f580f4d2
Contents?: true
Size: 842 Bytes
Versions: 4
Compression:
Stored size: 842 Bytes
Contents
require 'spec_helper' describe Lita::Handlers::OnewheelSnowcrash, lita_handler: true do it { is_expected.to route_command('snowcrash') } it { is_expected.to route_command('snowcrash 2') } it { is_expected.to route_command('snowcrashwords') } it { is_expected.to route_command('snowcrashwords 22') } it 'will generate a random-len chain' do send_command 'snowcrash' expect(replies.last).not_to be nil end it 'will generate a six-word chain' do send_command 'snowcrashwords 6' expect(replies.last).not_to be nil expect(replies.last.split(' ').count).to be(6) end it 'will generate a sentence chain' do send_command 'snowcrash' expect(replies.last).not_to be nil end it 'will generate a two-sentence chain' do send_command 'snowcrash 2' expect(replies.last).not_to be nil end end
Version data entries
4 entries across 4 versions & 1 rubygems