Sha256: fef9dbb4c19d043b7aa2a21c592d563d7949c369cdec02c25916d89b3d85a68c

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require "test_helper"

describe "Document" do
  describe Person do
    subject { Person }

    it { must be_document }
    it { must be_paranoid }
    it { must be_versioned }
    it { must be_timestamped }

    it { must be_stored_in(:people) }

    it { must have_field(:name).of_type(String).with_default_value("me") }
    it { must have_fields(:name, :login).of_type(String).with_default_value("me") }

    it { must have_index_for(:name) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-minitest-0.0.3 test/matchers/document_test.rb