Skip to content

Comments

Always include FixtureKit::RSpec instance methods#29

Merged
ngan merged 2 commits intomainfrom
np-rspec-always-include-fixture-instance-method
Feb 24, 2026
Merged

Always include FixtureKit::RSpec instance methods#29
ngan merged 2 commits intomainfrom
np-rspec-always-include-fixture-instance-method

Conversation

@ngan
Copy link
Collaborator

@ngan ngan commented Feb 24, 2026

Summary

This changes the RSpec integration to always include FixtureKit::RSpec::InstanceMethods regardless of fixture metadata.

Changes

  • Updated FixtureKit::RSpec.configure! to include instance methods unconditionally:
    • config.include InstanceMethods
  • Added unit coverage for this behavior in:
    • spec/unit/rspec_configuration_spec.rb

Why

fixture should be available as an instance method on example groups even when no fixture metadata is present.

Validation

  • bundle exec rspec --fail-fast spec/unit

ngan and others added 2 commits February 24, 2026 14:24
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
@ngan ngan merged commit c460b32 into main Feb 24, 2026
10 checks 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