Skip to content

Instantly share code, notes, and snippets.

@tom-lord
Last active June 25, 2018 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tom-lord/01ec536af085df365aaf032ea9af9a4a to your computer and use it in GitHub Desktop.
Save tom-lord/01ec536af085df365aaf032ea9af9a4a to your computer and use it in GitHub Desktop.
Emoji-Driven tests for ๐Ÿ„
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