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

Create a matcher for url validation #56

Open
00dav00 opened this issue Aug 31, 2017 · 1 comment
Open

Create a matcher for url validation #56

00dav00 opened this issue Aug 31, 2017 · 1 comment

Comments

@00dav00
Copy link
Contributor

00dav00 commented Aug 31, 2017

I think it could be handy to create a matcher for tests. Something like:

it { is_expected.to validate_url(:url_field).with_schemes(['http', 'ftp']).no_local }
@kritik
Copy link
Member

kritik commented Sep 1, 2017

pull requests are welocome

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

No branches or pull requests

2 participants