Skip to content

Render negated test cases in account specs#10885

Merged
aduth merged 1 commit intomainfrom
aduth-account-show-spec-render-consistently
Jun 28, 2024
Merged

Render negated test cases in account specs#10885
aduth merged 1 commit intomainfrom
aduth-account-show-spec-render-consistently

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Jun 28, 2024

🛠 Summary of changes

Fixes specs for the account page view to ensure that the view is consistently rendered when asserting expected behavior.

Because it's easy to assert that something doesn't render a particular template when you don't render anything at all, but it's not particularly useful 😉 Another case of to_not giving us a false sense of confidence.

Discovered via #10847

📜 Testing Plan

rspec spec/views/accounts/show.html.erb_spec.rb

changelog: Internal, Automated Testing, Render negated test cases in account specs
@aduth aduth requested a review from a team June 28, 2024 14:08
@aduth aduth merged commit da24415 into main Jun 28, 2024
@aduth aduth deleted the aduth-account-show-spec-render-consistently branch June 28, 2024 14:37
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.

2 participants