tests and travis succeeding
This commit is contained in:
parent
6ca2ecebc2
commit
7a5b1f20dd
3 changed files with 7 additions and 15 deletions
|
@ -4,10 +4,8 @@
|
|||
#
|
||||
# id :integer not null, primary key
|
||||
# debt_cents :integer default("0"), not null
|
||||
# nickname :string
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# encrypted_password :string default(""), not null
|
||||
# remember_created_at :datetime
|
||||
# sign_in_count :integer default("0"), not null
|
||||
# current_sign_in_at :datetime
|
||||
|
@ -24,6 +22,7 @@
|
|||
# koelkast :boolean default("f")
|
||||
# provider :string
|
||||
# uid :string
|
||||
# encrypted_password :string
|
||||
#
|
||||
|
||||
class User < ActiveRecord::Base
|
||||
|
|
11
test/fixtures/users.yml
vendored
11
test/fixtures/users.yml
vendored
|
@ -4,10 +4,8 @@
|
|||
#
|
||||
# id :integer not null, primary key
|
||||
# debt_cents :integer default("0"), not null
|
||||
# nickname :string
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# encrypted_password :string default(""), not null
|
||||
# remember_created_at :datetime
|
||||
# sign_in_count :integer default("0"), not null
|
||||
# current_sign_in_at :datetime
|
||||
|
@ -24,21 +22,22 @@
|
|||
# koelkast :boolean default("f")
|
||||
# provider :string
|
||||
# uid :string
|
||||
# encrypted_password :string
|
||||
#
|
||||
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
benji:
|
||||
nickname: benji
|
||||
uid: benji
|
||||
dagschotel_id: 1
|
||||
|
||||
iasoon:
|
||||
nickname: iasoon
|
||||
uid: iasoon
|
||||
|
||||
admin:
|
||||
nickname: admin
|
||||
uid: admin
|
||||
admin: 1
|
||||
|
||||
koelkast:
|
||||
nickname: koelkast
|
||||
uid: koelkast
|
||||
koelkast: 1
|
||||
|
|
|
@ -4,10 +4,8 @@
|
|||
#
|
||||
# id :integer not null, primary key
|
||||
# debt_cents :integer default("0"), not null
|
||||
# nickname :string
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# encrypted_password :string default(""), not null
|
||||
# remember_created_at :datetime
|
||||
# sign_in_count :integer default("0"), not null
|
||||
# current_sign_in_at :datetime
|
||||
|
@ -24,6 +22,7 @@
|
|||
# koelkast :boolean default("f")
|
||||
# provider :string
|
||||
# uid :string
|
||||
# encrypted_password :string
|
||||
#
|
||||
|
||||
require 'test_helper'
|
||||
|
@ -46,9 +45,4 @@ class UserTest < ActiveSupport::TestCase
|
|||
test "to_param" do
|
||||
assert_equal @user.to_param, "#{@user.id}-benji"
|
||||
end
|
||||
|
||||
test "devise validatable methods" do
|
||||
assert_not @user.email_required?
|
||||
assert_not @user.email_changed?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue