Sha256: 3675492f15a9dd6bffd9d004eb47384b1024b3e74e3bd958490df1bcdb647772
Contents?: true
Size: 617 Bytes
Versions: 6
Compression:
Stored size: 617 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_cancellations_url assert_response :success end test "should create cancellation" do assert_difference("<%= class_name %>.count", -1) do post cancellations_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" }); user end end
Version data entries
6 entries across 6 versions & 1 rubygems