Sha256: a0e1c1fdfb77d73de40b287f1d9bc41ce33f19590182d630d3501e3063c0e3dd

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

require "spec_helper"

describe Mongoid::NestedSerialization do
  describe "::included" do
    let(:document) do
      Class.new do
        include Mongoid::Document
      end
    end
    
    it "should be included in any Mongoid::Document models" do
      expect(document.included_modules).to include Mongoid::NestedSerialization
    end
    
    it "should provide a ::find_by_json method" do
      expect(document).to respond_to :find_by_json
    end
    
    it "should provide a #finder_json method" do
      expect(document.new).to respond_to :finder_json
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid-nested-serialization-0.0.6 spec/mongoid/nested_serialization_spec.rb
mongoid-nested-serialization-0.0.5 spec/mongoid/nested_serialization_spec.rb
mongoid-nested-serialization-0.0.4 spec/mongoid/nested_serialization_spec.rb
mongoid-nested-serialization-0.0.3 spec/mongoid/nested_serialization_spec.rb
mongoid-nested-serialization-0.0.2 spec/mongoid/nested_serialization_spec.rb
mongoid-nested-serialization-0.0.1 spec/mongoid/nested_serialization_spec.rb