Devise authentication added - no registration though

This commit is contained in:
Christoph Haas 2015-05-02 16:16:29 +02:00
parent 9f0a81152f
commit 3988c7ddf3
10 changed files with 429 additions and 1 deletions

12
test/fixtures/users.yml vendored Normal file
View file

@ -0,0 +1,12 @@
# Read about fixtures at
# http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value

13
test/models/user_test.rb Normal file
View file

@ -0,0 +1,13 @@
require "test_helper"
class UserTest < ActiveSupport::TestCase
def user
@user ||= User.new
end
def test_valid
assert user.valid?
end
end