cleaned up accounts
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user