Last active
December 10, 2015 07:19
-
-
Save leejarvis/4400531 to your computer and use it in GitHub Desktop.
This file contains 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_helper' | |
class UserTest < ActiveSupport::TestCase | |
test 'full_name returns contatenated first and last name' do | |
user = build(:user, first_name: 'foo', last_name: 'bar') | |
assert_equal 'foo bar', user.full_name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment