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