feat: pagination boundary tests and spec/support infrastructure (#70)#70
Merged
Conversation
- Add spec/support/request_helpers.rb — defines `let(:engine_root)` for all request specs via RSpec.configure; rails_helper.rb loads support/**/*.rb - Add `describe "pagination"` blocks to jobs, failed_jobs, cache_entries, history, and cable_messages specs — covers page 2, pagination controls visible at 26+ records, and graceful handling of out-of-range pages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
spec/support/request_helpers.rbwith a sharedengine_rootlet for all request specs;rails_helper.rbnow auto-loadsspec/support/**/*.rbdescribe "pagination"blocks to five list view specs (jobs, failed jobs, cache entries, history, cable messages) — covers pagination controls appearing at 26+ records, page 2 returning 200, and out-of-range pages returning 200 without errorTest plan
bundle exec rspec— 271 examples, 0 failuresbin/rubocop— no offensesCloses #41
Closes #42
Closes #44
🤖 Generated with Claude Code