-
Notifications
You must be signed in to change notification settings - Fork 114
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
How to test #67
Comments
To be honest I don't know how to help you. Tests are passing and this gem is working in production. So, seems problem in your test |
For some reason I have the same problem. My model: class LawProposal < ApplicationRecord
validates :name, presence: true
validates :url, presence: true, url: { allow_nil: true }
end My spec file: require 'rails_helper'
RSpec.describe LawProposal, type: :model do
subject { LawProposal.new }
context "validations" do
it "has a name" do
expect(subject).not_to be_valid
end
it "has an url" do
should validate_url_of(:url)
end
end
end Error
|
Same issue here. I opened the above PR to resolve the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this test:
The text was updated successfully, but these errors were encountered: