Permalink
Browse files

Fix some failing specs

These specs seem too mock- and stub-heavy, and could use a bit of
loving, but for now just making the minimal change to get the spec suite
green again (it has been neglected for a long while).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
  • Loading branch information...
1 parent 46b73b2 commit 356d432a83437f827fc425bf74ef8e4e3809ebcb @wincent committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/command-t/controller_spec.rb
@@ -67,7 +67,7 @@ def check_ruby_1_9_2
end
def stub_finder(sorted_matches=[])
- finder = Object.new
+ finder = CommandT::FileFinder.new
stub(finder).path = anything
stub(finder).sorted_matches_for(anything, anything).returns(sorted_matches)
stub(CommandT::FileFinder).new.returns(finder)

0 comments on commit 356d432

Please sign in to comment.