Sha256: 92ed40f917dc2f47e646d5f4087465dec37fa42c1d246e95fc85da229d8aac8c

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

class Post
  include MongoMapper::Document
end

class Comment
  include MongoMapper::EmbeddedDocument
end

class Dummy
end

describe Pickle::Adapter do

  describe ".model_classes" do
    it "should return MongoMapper::Document classes" do
      Pickle::Adapter.model_classes.should include(Post, Comment)
    end
    
    it "should not return other classes" do
      Pickle::Adapter.model_classes.should_not include(Dummy)
    end
    
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pickle-mongo_mapper-0.0.2 spec/pickle-mongo_mapper_spec.rb
pickle-mongo_mapper-0.0.1 spec/pickle-mongo_mapper_spec.rb