Browse files

fix tests to work with latest version of mocha

  • Loading branch information...
1 parent 3521765 commit 5b512cf084b76444dca1c7face0e84a10694c263 @jamis jamis committed May 1, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/common.rb
View
4 test/common.rb
@@ -67,7 +67,7 @@ def name
end
def stub!
- stat = Mocha::Mock.new(false, "file::stat")
+ stat = Mocha::Mock.new("file::stat")
stat.stubs(:size => contents.length, :mode => mode, :mtime => mtime, :atime => atime, :directory? => false)
File.stubs(:stat).with(path).returns(stat)
@@ -107,7 +107,7 @@ def directory(name, *args)
def stub!
Dir.stubs(:mkdir).with { |*a| a.first == path }
- stat = Mocha::Mock.new(false, "file::stat")
+ stat = Mocha::Mock.new("file::stat")
stat.stubs(:size => 1024, :mode => mode, :mtime => mtime, :atime => atime, :directory? => true)
File.stubs(:stat).with(path).returns(stat)

0 comments on commit 5b512cf

Please sign in to comment.