Created
December 10, 2016 19:47
-
-
Save snarfmason/a32e2c882054ce16b1b8977634435557 to your computer and use it in GitHub Desktop.
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
class Meme | |
def i_can_has_cheezburger? | |
"OHAI!" | |
end | |
def will_it_blend? | |
"YES!" | |
end | |
end | |
require "./minitest-repos/wvanbergen/minitest/lib/minitest/autorun" | |
class TestMeme < Minitest::Test | |
def setup | |
@meme = Meme.new | |
end | |
def test_that_kitty_can_eat | |
assert_equal "OHAI!", @meme.i_can_has_cheezburger? | |
end | |
def test_that_it_will_not_blend | |
refute_match /^no/i, @meme.will_it_blend? | |
end | |
def test_that_will_be_skipped | |
skip "test this later" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment