Sha256: e9182b04a572246b18cfb2903f725564f434b99aed13ad8a4ba385b5602eabc6
Contents?: true
Size: 561 Bytes
Versions: 26
Compression:
Stored size: 561 Bytes
Contents
module Shoulda module Matchers module ActiveModel class AllowValueMatcher # @private class AttributeDoesNotExistError < Shoulda::Matchers::Error attr_accessor :model, :attribute_name, :value def message Shoulda::Matchers.word_wrap <<-MESSAGE The matcher attempted to set :#{attribute_name} on the #{model.name} to #{value.inspect}, but that attribute does not exist. MESSAGE end def successful? false end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems