Sha256: 7e03f5b53eb49d2b707fa1ff198c94dba786764201cbe686b706c7a7db2c2fe1
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
require "test_helper" class CancellationsControllerTest < ActionDispatch::IntegrationTest setup do @<%= singular_table_name %> = sign_in_as(<%= table_name %>(:lazaro_nixon)) end test "should get new" do get new_cancellation_url assert_response :success end test "should create cancellation" do assert_difference("<%= class_name %>.count", -1) do post cancellation_url end assert_redirected_to sign_in_url end def sign_in_as(<%= singular_table_name %>) post(sign_in_url, params: { email: <%= singular_table_name %>.email, password: "secret123" }); <%= singular_table_name %> end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authentication-zero-2.1.1 | lib/generators/authentication/templates/test_unit/controllers/html/cancellations_controller_test.rb.tt |