Sha256: 85778ea22465fe2c2f9f8bf4432d8ac4d4fbedf142216543aedf750a60607f5d
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
require 'spec_helper' describe "When required" do it "should add the ToViewModel plugin to all MongoMapper Documents and EmbeddedDocuments" do require 'mm_to_view_model/import' MongoMapper::Document.expects(:plugin).with(MongoMapper::Plugins::ToViewModel) MongoMapper::EmbeddedDocument.expects(:plugin).with(MongoMapper::Plugins::ToViewModel) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mm_to_view_model-0.1.2 | spec/mm_to_view_model/import_spec.rb |
mm_to_view_model-0.1.1 | spec/mm_to_view_model/import_spec.rb |
mm_to_view_model-0.1.0 | spec/mm_to_view_model/import_spec.rb |