cleaned up accounts

This commit is contained in:
2016-09-28 22:12:55 -05:00
parent 33f3be1c79
commit 81c667da0f
11 changed files with 34 additions and 35 deletions

View File

@ -12,9 +12,9 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest
test "should create account" do
assert_difference('Account.count') do
post accounts_url, params: { account: {
home: @account.home,
home_folder: @account.home_folder,
password: @account.password,
site: @account.site,
contact_email: @account.contact_email,
username: 'client-new'
} }
end
@ -36,9 +36,9 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest
test "should update account" do
patch account_url(@account), params: { account: {
home: @account.home,
home_folder: @account.home_folder,
password: @account.password,
site: @account.site,
contact_email: @account.contact_email,
username: @account.username
} }
assert_redirected_to account_url(@account)