spec/sprinkle/installers/freebsd_pkg_spec.rb in sprinkle-0.7.4 vs spec/sprinkle/installers/freebsd_pkg_spec.rb in sprinkle-0.7.5
- old
+ new
@@ -1,10 +1,10 @@
require File.expand_path("../../spec_helper", File.dirname(__FILE__))
describe Sprinkle::Installers::FreebsdPkg do
before do
- @package = mock(Sprinkle::Package, :name => 'package')
+ @package = double(Sprinkle::Package, :name => 'package')
end
def create_pkg(pkgs, &block)
Sprinkle::Installers::FreebsdPkg.new(@package, pkgs, &block)
end