From 9fed1c4109bb8d86b419e5cb7b66e5828542f699 Mon Sep 17 00:00:00 2001 From: Jonathan Hyman Date: Tue, 18 Aug 2015 10:57:53 -0400 Subject: [PATCH] Rename no_timeout to no_cursor_timeout to match mongo-ruby-driver. --- lib/origin/optional.rb | 4 ++-- spec/origin/optional_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/origin/optional.rb b/lib/origin/optional.rb index 740a8cf..ffcb5d4 100644 --- a/lib/origin/optional.rb +++ b/lib/origin/optional.rb @@ -108,12 +108,12 @@ def max_scan(value = nil) # Tell the query not to timeout. # # @example Tell the query not to timeout. - # optional.no_timeout + # optional.no_cursor_timeout # # @return [ Optional ] The cloned optional. # # @since 1.0.0 - def no_timeout + def no_cursor_timeout clone.tap { |query| query.options.store(:timeout, false) } end diff --git a/spec/origin/optional_spec.rb b/spec/origin/optional_spec.rb index eb57a01..df0db99 100644 --- a/spec/origin/optional_spec.rb +++ b/spec/origin/optional_spec.rb @@ -716,10 +716,10 @@ end end - describe "#no_timeout" do + describe "#no_cursor_timeout" do let(:selection) do - query.no_timeout + query.no_cursor_timeout end it "adds the timeout option" do