Sha256: 3b0f65b2ccb6dbef229ddb6c72a49f4c8ed8cd0180fd39fa4d2d9386c98b7cf9
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
require 'simplecov' SimpleCov.start require 'validates_formatting_of' require 'active_model' class TestActiveRecord include ActiveModel::Validations include ActiveModel::Conversion extend ValidatesFormattingOf::ModelAdditions def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end @persisted = false end def save @persisted = true end def persisted? @persisted ||= false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
validates_formatting_of-0.6.9 | spec/spec_helper.rb |