Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 489 Bytes
require 'minitest/unit'
class Meme
def i_can_has_cheezburger?
"OHAI!"
end
def will_it_blend?
"YES!"
end
end
class TestMeme < MiniTest::Unit::TestCase
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 /^maybe/i, @meme.will_it_blend?
refute_match /^no/i, @meme.will_it_blend?
refute_match /^lolz/i, @meme.will_it_blend?
end
end
Jump to Line
Something went wrong with that request. Please try again.