Sha256: c0d557b965dbb7e0aff65290325c73ae1d326720539e4c6c2b9cb4d4cad978f9

Contents?: true

Size: 564 Bytes

Versions: 29

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require "spec_helper"

describe Mongoid::Document do

  let(:klass) do
    Person
  end

  let(:person) do
    Person.new
  end

  describe '.client_name' do
    it 'returns client name' do
      Person.client_name.should == :default
    end
  end

  describe '.database_name' do
    it 'returns database name' do
      Person.database_name.should == 'mongoid_test'
    end
  end

  describe '.collection_name' do
    it 'returns collection name' do
      Person.collection_name.should == :people
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
mongoid-7.3.5 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.3.4 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.1.11 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.2.6 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.3.3 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.3.2 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.2.5 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.1.10 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.1.9 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.2.4 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.3.1 spec/mongoid/document_persistence_context_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/spec/mongoid/document_persistence_context_spec.rb
mongoid-7.3.0 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.2.3 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.1.8 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.0.13 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.2.2 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.2.1 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.1.7 spec/mongoid/document_persistence_context_spec.rb
mongoid-7.0.12 spec/mongoid/document_persistence_context_spec.rb