Created
December 1, 2013 05:18
-
-
Save bnadlerjr/7728782 to your computer and use it in GitHub Desktop.
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
class EmployeeTest < Test::Unit::TestCase | |
def test_employee_has_an_email | |
assert_equal('[email protected]', employee.email) | |
end | |
private | |
def employee | |
@employee ||= Employee.new('[email protected]') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment