Sha256: a26441ee8ae9d4506503f681a69881fba6d540a0d9ded8ee00a5f98276ae347c

Contents?: true

Size: 307 Bytes

Versions: 14

Compression:

Stored size: 307 Bytes

Contents

require 'spec_helper'

describe "Extensions" do
  context "DocumentNotValid" do
    it "should have document reader method" do
      doc_class = Doc()
      instance  = doc_class.new
      exception = MongoMapper::DocumentNotValid.new(instance)
      exception.document.should == instance
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mongo_mapper-0.16.0 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.6 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.5 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.4 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.3 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.2 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.1 spec/unit/exceptions_spec.rb
mongo_mapper-0.15.0 spec/unit/exceptions_spec.rb
mongo_mapper-0.14.0 spec/unit/exceptions_spec.rb
mongo_mapper-0.14.0.rc1 spec/unit/exceptions_spec.rb
mongo_mapper-0.13.1 spec/unit/exceptions_spec.rb
mongo_mapper-0.13.0 spec/unit/exceptions_spec.rb
mongo_mapper-0.13.0.beta2 spec/unit/exceptions_spec.rb
mongo_mapper-0.13.0.beta1 spec/unit/exceptions_spec.rb