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)
|
||||
|
4
test/fixtures/accounts.yml
vendored
4
test/fixtures/accounts.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user