cinch-magic 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|