Permalink
Browse files

[#190] [FIX] Tire::Search::Search#version should return `self` to all…

…ow chaining

Fixes karmi/retire@2bf5585 by @gedwards
  • Loading branch information...
1 parent eb31334 commit 6c3b852ccc912c06acb1f674827c54c7af5d4bc0 @karmi committed Jul 13, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 lib/tire/search.rb
  2. +2 −1 test/unit/search_test.rb
View
@@ -113,6 +113,7 @@ def explain(value)
def version(value)
@version = value
+ self
end
def perform
@@ -146,6 +146,7 @@ def foo; 'bar'; end
size(5).
sort { by :name, 'asc' }.
from(1)
+ .version(true)
end
end
@@ -324,7 +325,7 @@ def foo; 'bar'; end
context "with version" do
- should "set the version value in options" do
+ should "set the version" do
s = Search::Search.new('index') do
version true
end

0 comments on commit 6c3b852

Please sign in to comment.