cinch-magic 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/spec/cinch-magic_spec.rb
CHANGED
@@ -9,12 +9,12 @@ describe Cinch::Plugins::Magic do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
it 'should allow users to lookup cards' do
|
12
|
-
get_replies(make_message(@bot, '!mtg forest')).first.
|
12
|
+
get_replies(make_message(@bot, '!mtg forest')).first.text.
|
13
13
|
should include "[Magic] Forest [Basic Land, Forest] - ({T}: Add {G} to your mana pool.)"
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should return an error when a card is not found' do
|
17
|
-
get_replies(make_message(@bot, '!mtg random string that is probably not a real card')).first.
|
17
|
+
get_replies(make_message(@bot, '!mtg random string that is probably not a real card')).first.text.
|
18
18
|
should == '[Magic] Card not found, or problem fetching page.'
|
19
19
|
end
|
20
20
|
end
|