Skip to content

Add reusable release spec helpers and examples - #50

Merged
dblock merged 1 commit into
masterfrom
dblock/document-git-test-isolation
Nov 11, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/document-git-test-isolation

Conversation

@dblock

@dblock dblock commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add opt-in require "ruby-gem-release/rspec" / include RubyGemRelease::RSpec support for disposable Git repositories, isolated Rake processes, cross-process exports, and local registry/hosting adapters. No RSpec runtime dependency is added.

Reuse the helpers in existing portable consumer specs. Add a complete lifecycle-hook example spec that shares its real workflow builder and README with the production configuration, catching removed hooks or broken release-managed content. Link and document the example for projects customizing their release installation.

Publication adapters are explicit test replacements, not a sandbox for arbitrary custom callbacks.

Validation

  • bundle exec rake: 323 examples, 0 failures; RuboCop clean
  • bundle exec rake build
  • Built gem installed in a temporary directory: optional helper loads without RSpec; 7 packaged consumer examples pass
  • bundle exec rspec examples/lifecycle_hooks/spec/release_spec.rb: 1 example, 0 failures
  • git diff --check

AI disclosure: Prepared and updated by AI on behalf of @dblock.

@dblock
dblock force-pushed the dblock/document-git-test-isolation branch from 4b33ffb to e0b13ff Compare November 11, 2026 13:54
@dblock dblock changed the title Document consumer test isolation Document testing custom workflows Nov 11, 2026
@dblock
dblock force-pushed the dblock/document-git-test-isolation branch 2 times, most recently from cdb7c60 to 9d89c56 Compare November 11, 2026 14:04
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/document-git-test-isolation branch from 9d89c56 to 65ea5a1 Compare November 11, 2026 14:19
@dblock dblock changed the title Document testing custom workflows Add reusable release spec helpers and examples Nov 11, 2026
@dblock
dblock merged commit bc4d147 into master Nov 11, 2026
8 checks passed
@dblock
dblock deleted the dblock/document-git-test-isolation branch November 11, 2026 14:21
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