Sha256: e0b5c4010d070e2ccc80be031f0d39c14fbcd6c7e66f69d9c4d78e159a33ba67

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require "spec_helper"

describe Moped::Failover::Ignore do

  describe "#execute" do

    let(:exception) do
      RuntimeError.new
    end

    let(:node) do
      Moped::Node.new("127.0.0.1:27017")
    end

    it "raises the exception" do
      expect {
        described_class.execute(exception, node)
      }.to raise_error(exception.class)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/bundler/gems/moped-cf817ca58a85/spec/moped/failover/ignore_spec.rb