Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Commit

Permalink
[ACTIVEMODEL] Properly stub Index#exists? in model search unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Jul 12, 2011
1 parent a92ad29 commit 26f0c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/model_search_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class SearchTest < Test::Unit::TestCase

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

teardown do
Expand Down

0 comments on commit 26f0c12

Please sign in to comment.