Created
October 17, 2012 23:21
-
-
Save bensie/3908967 to your computer and use it in GitHub Desktop.
GHUser - MonkDevAcademy - class 5
This file contains hidden or 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
| 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