Sha256: 4c717b295a4f7215e4c83bcea90e798cf30df5544d586cfcbbe170783b9a3a92

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

require "spec_helper"

describe Mongoid::Errors::MixedSessionConfiguration do

  describe "#message" do

    let(:error) do
      described_class.new(:testing, { uri: "blah" })
    end

    it "contains the problem in the message" do
      error.message.should include(
        "Both uri and standard configuration options defined"
      )
    end

    it "contains the summary in the message" do
      error.message.should include(
        "Instead of simply giving uri or standard options a preference"
      )
    end

    it "contains the resolution in the message" do
      error.message.should include(
        "Provide either only a uri as configuration"
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-3.1.7 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-3.1.6 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-3.1.5 spec/mongoid/errors/mixed_session_configuration_spec.rb