Skip to content

Instantly share code, notes, and snippets.

@snarfmason
Created December 10, 2016 19:47
Show Gist options
  • Save snarfmason/a32e2c882054ce16b1b8977634435557 to your computer and use it in GitHub Desktop.
Save snarfmason/a32e2c882054ce16b1b8977634435557 to your computer and use it in GitHub Desktop.
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