Skip to content

Instantly share code, notes, and snippets.

@bensie
Created October 17, 2012 23:21
Show Gist options
  • Select an option

  • Save bensie/3908967 to your computer and use it in GitHub Desktop.

Select an option

Save bensie/3908967 to your computer and use it in GitHub Desktop.
GHUser - MonkDevAcademy - class 5
require "test/unit"
class GHUserTest < Test::Unit::TestCase
def setup
@user = GHUser.new("bensie")
end
def test_has_a_name
assert_equal "James Miller", @user.name
end
def test_has_a_login
assert_equal "bensie", @user.login
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment