Conversation
- Add model tests (6 files, 99 tests): Account, Shop, ItemTag, Shopkeeper, AccountsShopkeeper, AccountsInvitation - Add policy tests (4 files, 39 tests): BasePolicy, ItemTagPolicy, ShopPolicy, PermissionPolicy - Add API controller tests (5 files, 42 tests): MeController, PermissionsController, AccountsInvitationsController, AccountsShopkeepersController - Update CLAUDE.md with testing strategy and best practices - All tests passing: 205 runs, 402 assertions, 0 failures, 0 errors Test coverage: - Models: 0% → 100% - Policies: 0% → 100% - API Controllers: 40% → 90% 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Document requirement to fix lint errors (RuboCop) before committing - Document requirement to fix security issues (Brakeman) before committing - Add pre-commit checklist with RuboCop, Brakeman, and test requirements - Include commands and auto-fix instructions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove useless variable assignments (3 offenses auto-corrected) - All RuboCop checks now passing (185 files, 0 offenses) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Update brakeman from 7.0.2 to 7.1.2 to eliminate version warning - Scan results remain clean with only Rails EOL informational warning 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Upgrade Rails from 7.1.5.1 to 7.2.3 to address EOL support warning - Constrain minitest to ~> 5.0 for Rails 7.2 compatibility - Remove minitest/mock require (not used in tests) - All tests passing: 205 runs, 402 assertions, 0 failures - Brakeman clean: 0 security warnings (EOL warning resolved) - RuboCop clean: 0 offenses 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add Permission model tests (6 tests) - Add Role model tests (9 tests) - Add RolesPermission model tests (7 tests) - Add AppVersion model tests (6 tests) - Add PrivacyVersion model tests (5 tests) - Add TermsVersion model tests (5 tests) - Update browserslist database (yarn.lock) Test coverage improvements: - Authorization system: Permission, Role, RolesPermission - Version management: AppVersion, PrivacyVersion, TermsVersion - All tests passing: 246 runs, 492 assertions, 0 failures - RuboCop clean: 0 offenses - Brakeman clean: 0 security warnings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add AccountSerializer tests (13 tests) - Add ShopkeeperSerializer tests (4 tests) - Add ShopkeeperSignInSerializer tests (8 tests) - Add AccountsInvitationSerializer tests (9 tests) - Add AccountsShopkeeperSerializer tests (8 tests) - Add ItemTagSerializer tests (8 tests) - Add ShopSerializer tests (8 tests) - Add PermissionSerializer tests (5 tests) Test coverage improvements: - All 8 serializers now have comprehensive tests (61 tests total) - Testing attributes, custom attributes, relationships - Testing serialization with tenant context (ActsAsTenant) - Testing serialization with params (current_shopkeeper) - All tests passing: 307 runs, 608 assertions, 0 failures - RuboCop clean: 0 offenses - Brakeman clean: 0 security warnings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add Display::ItemTagsController tests (6 tests): completings action with pagination - Add Display::ShopsController tests (4 tests): show action with various params - Add StaticController tests (3 tests): scan and scan_customer actions - Add ShopkeeperAuth::PasswordsController tests (4 tests): password reset flow - Add ShopkeeperAuth::ConfirmationsController tests (4 tests): email confirmation flow - All tests passing: 328 runs, 637 assertions, 0 failures, 0 errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add Active Storage migrations, Rails 7.2 framework defaults initializer, static error pages, and updated app icons with transparent backgrounds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 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
This PR adds comprehensive test coverage across the application, bringing test coverage from minimal levels to near 100% for core functionality.
Changes
Model Tests (6 files, 99 tests)
Policy Tests (4 files, 39 tests)
API Controller Tests (5 files, 42 tests)
Documentation
Test Results
Coverage Improvements
Test Plan
All tests pass:
🤖 Generated with Claude Code