forked from External/greenlight
add lb option
This commit is contained in:
@ -9,11 +9,6 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
|
||||
@steve.room = @kitchen
|
||||
end
|
||||
|
||||
test 'can get login page.' do
|
||||
get login_path
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test 'can signin with greenlight account.' do
|
||||
post create_session_path, params: {session: {email: @steve.email, password: "steve12345"}}
|
||||
|
||||
|
@ -15,9 +15,9 @@ class UserTest < ActiveSupport::TestCase
|
||||
assert_not @steve.valid?
|
||||
end
|
||||
|
||||
test "email should be present." do
|
||||
test "should allow nil email." do
|
||||
@steve.email = nil
|
||||
assert_not @steve.valid?
|
||||
assert @steve.valid?
|
||||
end
|
||||
|
||||
test "username should be present." do
|
||||
|
Reference in New Issue
Block a user