mirror of
https://github.com/we-promise/sure.git
synced 2026-04-25 23:14:10 +00:00
Consolidate and simplify account pages (#2462)
* Remove ScrollFocusable * Consolidate and simplify account pages * Lint fixes * Fix tab param initialization * Remove stale files * Remove stale route, make accountable routes clearer
This commit is contained in:
@@ -45,7 +45,7 @@ class VehiclesControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "updates with vehicle details" do
|
||||
assert_no_difference [ "Account.count", "Vehicle.count" ] do
|
||||
patch account_path(@account), params: {
|
||||
patch vehicle_path(@account), params: {
|
||||
account: {
|
||||
name: "Updated Vehicle",
|
||||
balance: 28000,
|
||||
@@ -64,7 +64,7 @@ class VehiclesControllerTest < ActionDispatch::IntegrationTest
|
||||
}
|
||||
end
|
||||
|
||||
assert_redirected_to @account
|
||||
assert_redirected_to account_path(@account)
|
||||
assert_equal "Vehicle account updated", flash[:notice]
|
||||
assert_enqueued_with(job: SyncJob)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user