Sha256: 2fb9d70bce505c6341814465741e7bee700d4f34a5bb8cf81bcbeda5cfd80f5b

Contents?: true

Size: 882 Bytes

Versions: 20

Compression:

Stored size: 882 Bytes

Contents

require 'spec_helper'

describe ModuleSync::Settings do
  subject do
    ModuleSync::Settings.new(
      {},
      {},
      {},
      { 'Rakefile' => { 'unmanaged' => true },
        :global => { 'global' => 'value' },
        'Gemfile' => { 'key' => 'value' }, },
      {}
    )
  end

  it { is_expected.not_to eq nil }
  it { expect(subject.managed?('Rakefile')).to eq false }
  it { expect(subject.managed?('Rakefile/foo')).to eq false }
  it { expect(subject.managed?('Gemfile')).to eq true }
  it { expect(subject.managed?('Gemfile/foo')).to eq true }
  it { expect(subject.managed_files([])).to eq ['Gemfile'] }
  it { expect(subject.managed_files(%w[Rakefile Gemfile other_file])).to eq %w[Gemfile other_file] }
  it { expect(subject.unmanaged_files([])).to eq ['Rakefile'] }
  it { expect(subject.unmanaged_files(%w[Rakefile Gemfile other_file])).to eq ['Rakefile'] }
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
modulesync-2.6.0 spec/unit/modulesync/settings_spec.rb
modulesync-2.5.0 spec/unit/modulesync/settings_spec.rb
modulesync-2.4.0 spec/unit/modulesync/settings_spec.rb
modulesync-2.3.1 spec/unit/modulesync/settings_spec.rb
modulesync-2.3.0 spec/unit/modulesync/settings_spec.rb
modulesync-2.2.0 spec/unit/modulesync/settings_spec.rb
modulesync-2.1.1 spec/unit/modulesync/settings_spec.rb
modulesync-2.1.0 spec/unit/modulesync/settings_spec.rb
modulesync-2.0.2 spec/unit/modulesync/settings_spec.rb
modulesync-2.0.1 spec/unit/modulesync/settings_spec.rb
modulesync-2.0.0 spec/unit/modulesync/settings_spec.rb
modulesync-1.3.0 spec/unit/modulesync/settings_spec.rb
modulesync-1.2.0 spec/unit/modulesync/settings_spec.rb
modulesync-1.1.0 spec/unit/modulesync/settings_spec.rb
modulesync-1.0.0 spec/unit/modulesync/settings_spec.rb
modulesync-0.10.0 spec/unit/modulesync/settings_spec.rb
modulesync-0.9.0 spec/unit/modulesync/settings_spec.rb
modulesync-0.8.2 spec/unit/modulesync/settings_spec.rb
modulesync-0.8.1 spec/unit/modulesync/settings_spec.rb
modulesync-0.8.0 spec/unit/modulesync/settings_spec.rb