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

Add support for model validation #16

Open
sugarb opened this issue Jun 21, 2023 · 0 comments
Open

Add support for model validation #16

sugarb opened this issue Jun 21, 2023 · 0 comments

Comments

@sugarb
Copy link

sugarb commented Jun 21, 2023

perhaps something like is_(not_)valid_with. To replace the following:

specify_with('foo', 'bar', 'baz' )      { is_expected.to be_valid }
specify_with('foo', 'bar', :invalid)    { is_expected.not_to be_valid }

Replacement might look like:

is_valid_with     'foo', 'bar', 'baz'
is_not_valid_with 'foo', 'bar', :invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant