Sha256: 94655b60b4203556a3460e560a82a389ff7513a185f640450b44c4119a2f5a9b
Contents?: true
Size: 1.44 KB
Versions: 13
Compression:
Stored size: 1.44 KB
Contents
# require 'test_helper' # # module Kaui # class AccountEmailsControllerTest < ActionController::TestCase # setup do # @account_email = account_emails(:one) # end # # test "should get index" do # get :index # assert_response :success # assert_not_nil assigns(:account_emails) # end # # test "should get new" do # get :new # assert_response :success # end # # test "should create account_email" do # assert_difference('AccountEmail.count') do # post :create, account_email: { accountId: @account_email.accountId, email: @account_email.email } # end # # assert_redirected_to account_email_path(assigns(:account_email)) # end # # test "should show account_email" do # get :show, id: @account_email # assert_response :success # end # # test "should get edit" do # get :edit, id: @account_email # assert_response :success # end # # test "should update account_email" do # put :update, id: @account_email, account_email: { accountId: @account_email.accountId, email: @account_email.email } # assert_redirected_to account_email_path(assigns(:account_email)) # end # # test "should destroy account_email" do # assert_difference('AccountEmail.count', -1) do # delete :destroy, id: @account_email # end # # assert_redirected_to account_emails_path # end # end # end
Version data entries
13 entries across 13 versions & 1 rubygems