Resolve adminV2 skipped tests #1007
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
disabled after a Rails upgrade
test failures
Changes
Bug Fixes
Form Builder (
app/form_builders/admin_v2/form_builder.rb)using safe navigation, preventing crashes when forms are created
without a model
(lambdas/procs) in addition to symbols
Teachers Controller (
app/controllers/admin_v2/teachers_controller.rb)parameter
with other user types
SchoolYear Model (
app/models/school_year.rb)duplicates at the model level
:
restrict_with_exceptionso the controller's rescue block properlyhandles deletion restrictions
Portfolio Transactions View
(
app/views/admin_v2/portfolio_transactions/show.html.erb)admin_v2_portfolio_paththat doesn't existTest Fixes
grades_controller_test.rb: Removed unnecessary skips (tests werepassing)
students_controller_test.rb: Fixed assertions to match actual viewcontent and enum values
teachers_controller_test.rb: Updated for soft delete behavior andclassroom associations
school_years_controller_test.rb: Fixed assertion syntax and testexpectations
portfolio_transactions_controller_test.rb: Removed skips (workingafter form builder fix)
-
base_controller_test.rb: Rewrote sorting tests to use proper HTTPintegration tests
school_year_test.rb: Updated to expect DeleteRestrictionErrorexception
Notes