Skip to content

Comments

refactor: update job retrieval logic and improve error handling tests#13

Merged
maakle merged 2 commits intomainfrom
fix-tests
Feb 20, 2026
Merged

refactor: update job retrieval logic and improve error handling tests#13
maakle merged 2 commits intomainfrom
fix-tests

Conversation

@maakle
Copy link
Collaborator

@maakle maakle commented Feb 20, 2026

  • Changed job retrieval from each { |_page| break } to each.first for better clarity and efficiency in basic_behavior_spec.rb.
  • Updated request method assertion from method to http_method in employee_form_flow_spec.rb for consistency.
  • Introduced a capture_error method in error_handling_spec.rb to streamline error handling tests and improve readability.
  • Adjusted comments in job_board_spec.rb for clarity.
  • Updated CapturedRequest struct to use http_method instead of method in test_context.rb for better semantic accuracy.

- Changed job retrieval from `each { |_page| break }` to `each.first` for better clarity and efficiency in `basic_behavior_spec.rb`.
- Updated request method assertion from `method` to `http_method` in `employee_form_flow_spec.rb` for consistency.
- Introduced a `capture_error` method in `error_handling_spec.rb` to streamline error handling tests and improve readability.
- Adjusted comments in `job_board_spec.rb` for clarity.
- Updated `CapturedRequest` struct to use `http_method` instead of `method` in `test_context.rb` for better semantic accuracy.
- Simplified job retrieval in `basic_behavior_spec.rb` by removing unnecessary variable assignments.
- Improved error handling tests in `error_handling_spec.rb` by replacing the `capture_error` method with inline error handling for better clarity and consistency.
@maakle maakle merged commit be554a8 into main Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant