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)

View File

@ -3,5 +3,5 @@
account1:
username: client-one
password: <%= CryptSerializer.dump('1q2w3e4r5t6y7u') %>
home: client_one
site: dev
home_folder: client_one
contact_email: ftp-user@mailinator.com

View File

@ -20,7 +20,7 @@ WebMock.disable_net_connect!(allow_localhost: true)
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(color: true)]
class ActiveSupport::TestCase
ActiveRecord::Migration.check_pending!
ActiveRecord::Migration.maintain_test_schema!
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all