We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following validation:
class MyModel < ActiveRecord::Base include ActiveModel::Validations validates :letter, presence: true, inclusion: { in: %w{A B C}, message: "must be A B C" } end
this test will pass, even though the message doesn't match:
require 'rails_helper' RSpec.describe MyModel, :type => :model do it { should validate_inclusion_of(:letter).in_array(%w{A B C}).with_message("BROKEN TEST") } end
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, I will take a closer look soon.
Sorry, something went wrong.
Fixed by #598.
No branches or pull requests
Given the following validation:
this test will pass, even though the message doesn't match:
The text was updated successfully, but these errors were encountered: