Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix: rule_spec should honor DB setting #847

Merged
merged 1 commit into from
May 23, 2024

Conversation

tardate
Copy link
Contributor

@tardate tardate commented Apr 30, 2024

I noticed when running db-specific tests e.g.

DB='postgres' bundle exec appraisal activerecord_6.1.0 rake

that spec/cancan/rule_spec.rb could fail if sqlite not available, because it was ignoring the DB context and always/only running with sqlite.

This is just a quick fix to ensure that spec/cancan/rule_spec.rb runs like all other tests with the specific DB selected.

Copy link
Member

@coorasse coorasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@coorasse coorasse merged commit ac7c686 into CanCanCommunity:develop May 23, 2024
16 of 24 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.

None yet

2 participants