Rubocop rules

This commit is contained in:
Nedim
2025-02-17 19:12:40 +01:00
parent ef01db0700
commit ee89170c32
42 changed files with 1043 additions and 267 deletions

View File

@@ -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