Sha256: de508d571aff88c67806d3f33252b0de529d0913da1b15161b22a7f919de1016

Contents?: true

Size: 468 Bytes

Versions: 10

Compression:

Stored size: 468 Bytes

Contents

require 'pathname'
require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'

describe DataMapper::Validate::ValidationErrors do

  before(:each) do
    @errors = DataMapper::Validate::ValidationErrors.new
  end

  it "should report that it is empty on first creation" do
    @errors.empty?.should == true
  end

  it "should continue to report that it is empty even after being checked" do
    @errors.on(:foo)
    @errors.empty?.should == true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dm-validations-0.9.4 spec/integration/validation_errors_spec.rb
dm-validations-0.9.2 spec/integration/validation_errors_spec.rb
dm-validations-0.9.10 spec/integration/validation_errors_spec.rb
dm-validations-0.9.11 spec/integration/validation_errors_spec.rb
dm-validations-0.9.3 spec/integration/validation_errors_spec.rb
dm-validations-0.9.5 spec/integration/validation_errors_spec.rb
dm-validations-0.9.7 spec/integration/validation_errors_spec.rb
dm-validations-0.9.8 spec/integration/validation_errors_spec.rb
dm-validations-0.9.9 spec/integration/validation_errors_spec.rb
dm-validations-0.9.6 spec/integration/validation_errors_spec.rb