Skip to content

Commit

Permalink
[karmi#463] [FIX] Add proper mock for unit test for model searches
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Nov 8, 2012
1 parent 2e997ae commit d001d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/model_search_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SearchTest < Test::Unit::TestCase
context "Model::Search" do

setup do
@stub = stub('search') { stubs(:query).returns(self); stubs(:perform).returns(self); stubs(:results).returns([]) }
@stub = stub('search') { stubs(:query).returns(self); stubs(:perform).returns(self); stubs(:results).returns([]); stubs(:size).returns(true) }
Tire::Index.any_instance.stubs(:exists?).returns(false)
end

Expand Down

0 comments on commit d001d2b

Please sign in to comment.