Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix assertion when rspec-json_expectations is missing #75

Merged

Conversation

ekohl
Copy link

@ekohl ekohl commented Jan 12, 2023

In 21f5743 the output was changed and the code path when rspec-json_expectations is present was updated, but not without. While this is an odd code path (since Gemfile does declare it as a dependency), it can be hit if a different dependency mechanism is used (in particular: run the test suite in RPM's %check phase with explicit BuildRequires) and the expectations should be correct.

Fixes: 21f5743

In 21f5743 the output was changed and
the code path when rspec-json_expectations is present was updated, but
not without. While this is an odd code path (since Gemfile does declare
it as a dependency), it can be hit if a different dependency mechanism
is used and the expectations should be correct.

Fixes: 21f5743
@ekohl ekohl requested a review from a team as a code owner January 12, 2023 12:21
@chelnak chelnak merged commit b3c4eaa into puppetlabs:main Jan 16, 2023
@ekohl ekohl deleted the fix-tests-without-rspec-json_expectations branch January 16, 2023 23:13
@chelnak chelnak added the bug Something isn't working label Feb 27, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants