Sha256: 73301393589cba0ad23ad5af2c72209439b4a3ccb556a3d6f9035dbee04f9d5a
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
require 'test_helper' module Shoppe class UsersTest < ActiveSupport::TestCase test "authentication" do user = create(:user) authed_user = User.authenticate('adam@niftyware.io', 'llamafarm') assert_equal User, authed_user.class assert_equal user, authed_user authed_user = User.authenticate('adam@niftyware.io', 'invalid') assert_equal false, authed_user end test "full name" do user = build(:user) assert_equal "Adam Cooke", user.full_name end test "short name" do user = build(:user) assert_equal "Adam C", user.short_name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoppe-0.0.20 | test/models/shoppe/users_test.rb |