Sha256: b01afef475d336225a3aaba3e3345f213df3a93ed4e1096a5cc35cfbbac6a79d
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' describe 'DataMapper::Validations::ViolationSet' do before :all do @model = DataMapper::Validations::ViolationSet.new(Object.new) end describe "initially" do it "is empty" do @model.should be_empty end end # Not sure if this is worth having at all, # just keeping old spec suite bits in place # if they make no harm — MK describe "after enquiry" do before :all do @model.on(:property) end it "is still empty" do @model.should be_empty end end describe "after errors being added" do before :all do @model.add(:property, "can't be valid, no way") end it "is no longer empty" do @model.should_not be_empty end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aequitas-0.0.1 | spec_legacy/unit/violation_set/emptiness_spec.rb |