Installed authentication-zero
This commit is contained in:
16
test/controllers/registrations_controller_test.rb
Normal file
16
test/controllers/registrations_controller_test.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
require "test_helper"
|
||||
|
||||
class RegistrationsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get new" do
|
||||
get sign_up_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should sign up" do
|
||||
assert_difference("User.count") do
|
||||
post sign_up_url, params: { email: "lazaronixon@hey.com", password: "Secret1*3*5*", password_confirmation: "Secret1*3*5*" }
|
||||
end
|
||||
|
||||
assert_redirected_to root_url
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user