Last active
June 25, 2018 08:43
-
-
Save tom-lord/01ec536af085df365aaf032ea9af9a4a to your computer and use it in GitHub Desktop.
Emoji-Driven tests for ๐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'minitest/autorun' | |
require 'minitest/emoji' | |
module MiniTest | |
class Emoji | |
add_utf_theme :carwow, 0x1f3ce, 0x1f694, 0x1f690, 0x1f6b6 | |
end | |
end | |
describe Cow do | |
describe '๐ช' do | |
it 'returns a steak' do | |
๐ = Cow.new | |
assert_equal '๐ฅฉ', ๐.๐ช | |
end | |
# Intentional failure | |
it 'returns a pig' do | |
๐ = Cow.new | |
assert_equal '๐', ๐.๐ช | |
end | |
end | |
describe '๐ค ' do | |
# Intentional skip | |
it 'turns to face a cowboy' do | |
skip | |
๐ = Cow.new | |
assert_equal '๐ฎ', ๐.๐ค | |
end | |
end | |
describe '๐ง'' do | |
# Intentional error | |
it 'does not respond to rain' do | |
๐ = Cow.new | |
๐.๐ง | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment