-
-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add validating qualifier to enum matcher (#1630)
On this commit we add a new qualifier to the `define_enum_for` matcher called `validating`. This qualifier is used to test if the enum is being validated or not. ```ruby class Issue < ActiveRecord::Base enum status: [:open, :closed], validate: true end RSpec.describe Issue, type: :model do it do should define_enum_for(:status). validating end end ```
- Loading branch information
1 parent
c9d234a
commit 3c88e1c
Showing
2 changed files
with
316 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters