Sha256: 40811bf25a24148b952b7187f3ceb2280b4038c63222ea09b7057b35dbde30db
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
project_root = File.join(File.dirname(__FILE__), '..') $: << project_root Dir[File.join(File.dirname(__FILE__), "support", "*")].each {|f| require f } require 'active_model' require 'lib/jan_validator' class TestModel include ActiveModel::Validations 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 |
---|---|
jan_validator-0.1.0 | spec/spec_helper.rb |
jan_validator-0.0.1 | spec/spec_helper.rb |