Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 449 Bytes
require 'rubygems'
require 'rspec'
require 'active_model'
require 'action_dispatch'
require 'rspec/rails/extensions'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'csv_validator'
class TestModel
include ActiveModel::Validations
def initialize(attributes = {})
@attributes = attributes
end
def read_attribute_for_validation(key)
@attributes[key]
end
end