Sha256: beb502e31ae3b5974bdb91d086523f8ca895869464ec30ca2e1bf75ff47710d2
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
require 'spec_helper' describe ModuleSync do context '::update' do it 'loads the managed modules from the specified :managed_modules_conf' do allow(ModuleSync).to receive(:local_files).and_return([]) allow(ModuleSync::Util).to receive(:parse_config).with('./config_defaults.yml').and_return({}) expect(ModuleSync).to receive(:managed_modules).with('./test_file.yml', nil, nil).and_return([]) options = { managed_modules_conf: 'test_file.yml' } ModuleSync.update(options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
modulesync-0.10.0 | spec/unit/modulesync_spec.rb |
modulesync-0.9.0 | spec/unit/modulesync_spec.rb |