Sha256: d61918dc5350db15d9d272f4e9180987a2b88b20ba28ea7e7f59185dfd2b479a

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

require 'test_helper'

class ExtensionsTest < Test::Unit::TestCase
  context "DocumentNotValid" do
    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

3 entries across 3 versions & 2 rubygems

Version Path
mongo_mapper-0.12.0 test/unit/test_exceptions.rb
lookout-mongo_mapper-0.11.3 test/unit/test_exceptions.rb
mongo_mapper-0.11.2 test/unit/test_exceptions.rb