Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix tests to work with latest version of mocha

  • Loading branch information...
commit 5b512cf084b76444dca1c7face0e84a10694c263 1 parent 3521765
Jamis Buck jamis authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/common.rb
4 test/common.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.