Sha256: 953fb57eadfcdc46ed901ba6fef4d97563ac32785a7486dd89c6d177d1c6003d
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
require 'spec_helper' describe Cinch::Plugins::Magic do include Cinch::Test before(:each) do @bot = make_bot(Cinch::Plugins::Magic) end it 'should allow users to lookup cards' do get_replies(make_message(@bot, '!mtg forest')).first. should include "[Magic] Forest [Basic Land, Forest] - ({T}: Add {G} to your mana pool.)" end it 'should return an error when a card is not found' do get_replies(make_message(@bot, '!mtg random string that is probably not a real card')).first. should == '[Magic] Card not found, or problem fetching page.' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cinch-magic-1.0.0 | spec/cinch-magic_spec.rb |