Sha256: 82b905448465177af5a1ed832f55a46752f2daa2ae11e5782eb2a7d3d5196a3f

Contents?: true

Size: 512 Bytes

Versions: 6

Compression:

Stored size: 512 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: "secret123", password_confirmation: "secret123" } }
    end
    assert_redirected_to root_url

    follow_redirect!
    assert_response :success
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authentication-zero-2.0.0 lib/generators/authentication/templates/test_unit/controllers/html/registrations_controller_test.rb.tt
authentication-zero-1.0.2 lib/generators/authentication/templates/test_unit/controllers/html/registrations_controller_test.rb.tt
authentication-zero-1.0.1 lib/generators/authentication/templates/test_unit/controllers/html/registrations_controller_test.rb.tt
authentication-zero-1.0.0 lib/generators/authentication/templates/test_unit/controllers/html/registrations_controller_test.rb.tt
authentication-zero-0.0.24 lib/generators/authentication/templates/test_unit/controllers/html/registrations_controller_test.rb.tt
authentication-zero-0.0.23 lib/generators/authentication/templates/test_unit/controllers/html/registrations_controller_test.rb.tt