spec/mongoid/errors/no_client_database_spec.rb
References the MongoDB client service port
SHA-256a15912bf3f3be51e0fb9140cc784a57d146684bd41c3f820cb336cd812ff0352
MaleculeH(Db)
Evidence
⋯5 lines
6 describe '#message' do
7 let(:error) do
8 described_class.new(:analytics, { hosts: [ '127.0.0.1:27017' ] })
9 end
10
11 it 'contains the problem in the message' do
12 expect(error.message).to include(
13 'No database provided for client configuration: :analytics.'
14 )
15 end
16
17 it 'contains the summary in the message …
25:3… 'If configuring via a mongoid.yml, ensure that within your :analytics'
26 )
27 end
28 end
29end