Sha256: cd2007bcab6581e600551960d72256240517719d55a4fe094134bbcccc81a462
Contents?: true
Size: 287 Bytes
Versions: 1
Compression:
Stored size: 287 Bytes
Contents
Kajam.config do |config| config.namespace('testing', :allow_change => true) do |testing| testing.define 'invalid', :label => 'Default is not valid', :default => "non-monkey", :validate_with => lambda {|s| s.errors.add(:value, "non-monkey!") unless s.value == "monkey" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kajam-1.0.3.rc2 | spec/fixtures/bad_settings.rb |