Sha256: c0eb2147ab06bc7bffa8885c0934e5f9f6e4d1d762262cb10e425b1e438924d4

Contents?: true

Size: 700 Bytes

Versions: 14

Compression:

Stored size: 700 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
      expect(error.message).to include(
        "Both uri and standard configuration options defined"
      )
    end

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

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

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.2 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.1 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0.rc2 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0.rc1 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0.beta2 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0.beta1 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0.alpha2 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid-4.0.0.alpha1 spec/mongoid/errors/mixed_session_configuration_spec.rb
sepastian-mongoid-rails4-4.0.1.alpha spec/mongoid/errors/mixed_session_configuration_spec.rb
sepastian-mongoid-rails4-4.0.0.alpha spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid_heroku_stable-4.0.0 spec/mongoid/errors/mixed_session_configuration_spec.rb
mongoid_rails4-4.0.0 spec/mongoid/errors/mixed_session_configuration_spec.rb