1
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
6
validation = Validatable::ValidatesPresenceOf.new stub_everything, :name
7
validation.valid?(stub_everything)
11
validation = Validatable::ValidatesPresenceOf.new stub_everything, :name
12
validation.valid?(stub(:name=>"book"))
16
validation = Validatable::ValidatesPresenceOf.new stub_everything, :employee
17
validation.valid?(stub(:employee => stub(:nil? => false)))
21
options = {:message => nil, :if => nil, :times => nil, :level => nil, :groups => nil}
22
Validatable::ValidatesPresenceOf.new(stub_everything, :test).must_understand(options)
b'\\ No newline at end of file'