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

cannot load such file -- validate_url/rspec_matcher in Rails6 #84

Open
krtschmr opened this issue Sep 5, 2019 · 5 comments
Open

cannot load such file -- validate_url/rspec_matcher in Rails6 #84

krtschmr opened this issue Sep 5, 2019 · 5 comments

Comments

@krtschmr
Copy link

krtschmr commented Sep 5, 2019

anybody else?

seems to be correct installed tho

tim@vm:~/rails/$ cat spec/rails_helper.rb | grep validate_url
require 'validate_url/rspec_matcher'

tim@vm:~/rails/$ cat Gemfile | grep validate_url
gem "validate_url"
tim@vm:~/rails/$ bundle show | grep validate_url
  * validate_url (1.0.8)
@Ranger-X
Copy link

Ranger-X commented Sep 5, 2019

As a workaround just replace require 'validate_url/rspec_matcher' to require 'rspec_matcher'

@olleolleolle
Copy link
Contributor

The documentation matches the master code.

When that has been released, it will work as advertised.

Workaround: Use master

gem 'validate_url', github: 'perfectline/validates_url'

@andreierdoss
Copy link

andreierdoss commented Nov 8, 2019

FYI, same issue happens in Rails 5.2.3. It works when using the github install as mentioned above.

@sshaw
Copy link

sshaw commented Dec 6, 2019

Can we get a release with #81? require "rspec_matcher" is a bit 😬

@kylefox
Copy link

kylefox commented Mar 19, 2020

Adding require "rspec_matcher" as suggested above is a bad idea, and I try to avoid pointing my Gemfile at remote repositories.

So the option I went with was to simply copy & paste the validate_url_of matcher into my spec/spec_helper.rb file. It's also ugly, but is at least predictable until a proper fix is released.

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

6 participants