spec/unit/action/deploy/module_spec.rb in r10k-3.14.2 vs spec/unit/action/deploy/module_spec.rb in r10k-3.15.0

- old
+ new

@@ -229,11 +229,11 @@ it 'does not sync modules not given' do allow(R10K::Deployment).to receive(:new).and_wrap_original do |original, settings, &block| original.call(settings.merge({ sources: { main: { - remote: 'git://not/a/remote', + remote: 'https://not/a/remote', basedir: '/not/a/basedir', type: 'git' } } })) @@ -251,13 +251,13 @@ # the Environment's internal ModuleLoader and then call `load` on # it so it will create the correct loaded_content. loader = environment.loader allow(loader).to receive(:puppetfile_content).and_return('') expect(loader).to receive(:load) do - loader.add_module('mod1', { git: 'git://remote' }) - loader.add_module('mod2', { git: 'git://remote' }) - loader.add_module('mod3', { git: 'git://remote' }) + loader.add_module('mod1', { git: 'https://remote' }) + loader.add_module('mod2', { git: 'https://remote' }) + loader.add_module('mod3', { git: 'https://remote' }) loaded_content = loader.load! loaded_content[:modules].each do |mod| if ['mod1', 'mod2'].include?(mod.name) expect(mod.should_sync?).to be(true) @@ -288,11 +288,11 @@ it 'only syncs to the given environments' do allow(R10K::Deployment).to receive(:new).and_wrap_original do |original, settings, &block| original.call(settings.merge({ sources: { main: { - remote: 'git://not/a/remote', + remote: 'https://not/a/remote', basedir: '/not/a/basedir', type: 'git' } } })) @@ -313,11 +313,11 @@ # our own R10K::ModuleLoader::Puppetfile#load. We directly update # the Environment's internal ModuleLoader and then call `load` on # it so it will create the correct loaded_content. allow(loader).to receive(:puppetfile_content).and_return('') expect(loader).to receive(:load) do - loader.add_module('mod1', { git: 'git://remote' }) - loader.add_module('mod2', { git: 'git://remote' }) + loader.add_module('mod1', { git: 'https://remote' }) + loader.add_module('mod2', { git: 'https://remote' }) loaded_content = loader.load! loaded_content[:modules].each do |mod| if mod.name == 'mod1' expect(mod.should_sync?).to be(true)