spec/unit/plugins/mcollective/packagers/modulepackage_packager_spec.rb in mcollective-client-2.6.1 vs spec/unit/plugins/mcollective/packagers/modulepackage_packager_spec.rb in mcollective-client-2.7.0
- old
+ new
@@ -123,9 +123,14 @@
end
describe '#make_module' do
it 'should copy the package content to the tmp build dir' do
file = mock()
+
+ ['./agent/rspec.rb', './agent/rspec.ddl', './application/rspec.rb'].each do |m|
+ File.stubs(:expand_path).with(m).returns(m)
+ end
+
File.stubs(:directory?).with('rspec_tmp/manifests').returns(false, true)
File.stubs(:directory?).with('rspec_tmp/files/agent/mcollective/agent').returns(false, true)
File.stubs(:directory?).with('rspec_tmp/files/common/mcollective/agent').returns(false, true)
File.stubs(:directory?).with('rspec_tmp/files/client/mcollective/application').returns(false)
FileUtils.expects(:mkdir_p).with('rspec_tmp/manifests')