Sha256: 642aba0a2dabbf2ec2bceccaf02d4ccd96eb5f65262c93efe71a687ca358f555

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

require 'rspec'
require 'active_model'
require 'fakeweb'

require File.dirname(__FILE__) + '/../lib/valvat.rb'

$fakeweb = true

class ModelBase
  include ActiveModel::Serialization
  include ActiveModel::Validations
  
  attr_accessor :attributes
  
  def initialize(attributes = {})
    @attributes = attributes
  end
  
  def read_attribute_for_validation(key)
    @attributes[key]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
valvat-0.1.1 spec/spec_helper.rb