Sha256: 6a13ba1e93ceff7af557306eff228947779173b04ef77d02b5b4374b1985deb2
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
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("<%= class_name %>.count") do post sign_up_url, params: { <%= singular_table_name %>: { email: "lazaronixon@hey.com", password: "Secret1*3*5*", password_confirmation: "Secret1*3*5*" } }, headers: { "User-Agent" => "Firefox" } end assert_redirected_to root_url end end
Version data entries
2 entries across 2 versions & 1 rubygems