Sha256: 36c02b9d961d1dd0241f3cee894a03217a4f60401d5195f3e19f361e0fa08a4a
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require "spec_helper" describe Moped::ReadPreference::Selectable do describe "#query_options" do let(:preference) do Class.new do include Moped::ReadPreference::Selectable end.new end context "when the options have flags" do let(:options) do preference.query_options(flags: [ :tailable ]) end it "appends the slave_ok option" do expect(options).to eq(flags: [ :tailable, :slave_ok ]) end end context "when the options do not have flags" do let(:options) do preference.query_options({}) end it "adds the slave_ok option" do expect(options).to eq(flags: [ :slave_ok ]) end 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/read_preference/selectable_spec.rb |