Sha256: 7a9e6320ba96e0684121732120501ccc72a55beaf4c9f7c7dbc8cd7a2cb880b1

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 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(:find_template_files).and_return([])
      allow(ModuleSync::Util).to receive(:parse_config).with('./config_defaults.yml').and_return({})
      expect(ModuleSync).to receive(:managed_modules).with(no_args).and_return([])

      options = { managed_modules_conf: 'test_file.yml' }
      ModuleSync.update(options)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
modulesync-3.2.0 spec/unit/modulesync_spec.rb
modulesync-3.1.0 spec/unit/modulesync_spec.rb
modulesync-2.7.0 spec/unit/modulesync_spec.rb
modulesync-2.6.0 spec/unit/modulesync_spec.rb
modulesync-2.5.0 spec/unit/modulesync_spec.rb
modulesync-2.4.0 spec/unit/modulesync_spec.rb
modulesync-2.3.1 spec/unit/modulesync_spec.rb
modulesync-2.3.0 spec/unit/modulesync_spec.rb