Sha256: f013e93189160e5d5e8b00df040f2314df54df7085389238eaee87b3d5fe89d8
Contents?: true
Size: 1.63 KB
Versions: 8
Compression:
Stored size: 1.63 KB
Contents
require 'spec_helper' describe Cinch::Plugins::PaxTimer do include Cinch::Test before(:each) do @bot = make_bot(Cinch::Plugins::PaxTimer, {}) end before(:all) do # @plugin = Cinch::Plugins::PaxTimer.new end describe :pax do it 'should return the next pax' do msg = make_message(@bot, '!pax') get_replies(msg).first.text. should match(/PAX.+is (approximatly )?\d+ days from now/) end it 'should return nothing if there are arguments' do msg = make_message(@bot, '!pax fail') get_replies(msg).first. should be_nil end end it 'should respond to .prime correctly' do msg = make_message(@bot, '!prime') get_replies(msg).first.text. should match(/PAX Prime is.+days from now/) end it 'should respond to .paxprime correctly' do msg = make_message(@bot, '!paxprime') get_replies(msg).first.text. should match(/PAX Prime is.+days from now/) end it 'should respond to .east correctly' do msg = make_message(@bot, '!east') get_replies(msg).first.text. should match(/PAX East is.+days from now/) end it 'should respond to .paxeast correctly' do msg = make_message(@bot, '!paxeast') get_replies(msg).first.text. should match(/PAX East is.+days from now/) end it 'should respond to .aus correctly' do msg = make_message(@bot, '!aus') get_replies(msg).first.text. should match(/PAX Australia is.+days from now/) end it 'should respond to .paxaus correctly' do msg = make_message(@bot, '!paxaus') get_replies(msg).first.text. should match(/PAX Australia is.+days from now/) end end
Version data entries
8 entries across 8 versions & 1 rubygems