spec/lita/handlers/imgflip_memes_spec.rb in lita-imgflip-memes-1.1.1 vs spec/lita/handlers/imgflip_memes_spec.rb in lita-imgflip-memes-1.1.2
- old
+ new
@@ -20,20 +20,21 @@
end
describe ':make_meme' do
after { send_command "aliens chat bots" }
it 'responds with an image URL' do
- send_message "Lita aliens chat bots"
+ send_message 'Lita aliens chat bots'
expect(replies.last).to match(jpeg_url_match)
end
it 'can handle two-line inputs' do
send_message 'lita one does not simply walk into mordor'
expect(replies.last).to match(jpeg_url_match)
end
end
+ # START:cleaned_up
describe ':extract_meme_text' do
let(:matchers) { described_class.registered_templates }
it 'can properly match no-first-line inputs' do
matcher = matchers.select { |t| t.fetch(:template_id) == 101470 }.first
@@ -53,6 +54,7 @@
result = subject.extract_meme_text match_data
expect(result).to eql(['one does not simply', 'walk into mordor'])
end
end
+ # END:cleaned_up
end