Sha256: 21b6866d178a4ccbeca57a77e16e5116c1e8aef25a9aa892971a8bf08a5ad6be

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'active_model'
require 'immutable_validator'

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
end

class TestModel
  include ActiveModel::Validations

  def self.name
    'TestModel'
  end

  def initialize(attributes = {})
    @attributes = attributes
  end

  def read_attribute_for_validation(key)
    @attributes[key]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activemodel-immutable_validator-0.0.2 spec/spec_helper.rb
activemodel-immutable_validator-0.0.1 spec/spec_helper.rb