Skip to content

Instantly share code, notes, and snippets.

@ZachBeta
Created May 28, 2012 17:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ZachBeta/2820117 to your computer and use it in GitHub Desktop.
Zachary[0,4]
require 'test/unit'
class ARoseByAnyOtherName < Test::Unit::TestCase
def test_should_not_be_zack
assert_not_equal "Zachary"[0,4],"Zack"
# I'm not Zack Morris
# though I did have a huge crush on Kelly Kapowski
assert_not_equal "Zach Morek","Zack Morris"
end
def test_should_not_be_zac
assert_not_equal "Zachary"[0,4],"Zac"
# I'm not Zac Efron either
assert_not_equal "Zach Morek","Zac Efron"
end
def test_should_not_be_zakk
assert_not_equal "Zachary"[0,4],"Zakk"
# However hardcore I may be, I'm not Zakk Wylde
assert_not_equal "Zach Morek","Zakk Wylde"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment