Rubocop rules
This commit is contained in:
@@ -17,7 +17,15 @@ class CustomersControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "should create customer" do
|
||||
assert_difference("Customer.count") do
|
||||
post customers_url, params: { customer: { birthyear: @customer.birthyear, email: @customer.email, name: @customer.name, notes: @customer.notes, phone: @customer.phone } }
|
||||
post customers_url, params: {
|
||||
customer: {
|
||||
birthyear: @customer.birthyear,
|
||||
email: @customer.email,
|
||||
name: @customer.name,
|
||||
notes: @customer.notes,
|
||||
phone: @customer.phone
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
assert_redirected_to customer_url(Customer.last)
|
||||
@@ -34,7 +42,15 @@ class CustomersControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
test "should update customer" do
|
||||
patch customer_url(@customer), params: { customer: { birthyear: @customer.birthyear, email: @customer.email, name: @customer.name, notes: @customer.notes, phone: @customer.phone } }
|
||||
patch customer_url(@customer), params: {
|
||||
customer: {
|
||||
birthyear: @customer.birthyear,
|
||||
email: @customer.email,
|
||||
name: @customer.name,
|
||||
notes: @customer.notes,
|
||||
phone: @customer.phone
|
||||
}
|
||||
}
|
||||
assert_redirected_to customer_url(@customer)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user