Sha256: 6803560e870bb8f46dc511f323f45e6f631589eb1ff78330c075bb87680b44ed

Contents?: true

Size: 452 Bytes

Versions: 18

Compression:

Stored size: 452 Bytes

Contents

require "spec_helper"

describe CompareLinker::GemDictionary do
  describe "#lookup" do
    context 'given a gem name included in the dictionary' do
      subject { described_class.new.lookup('serverspec') }
      it { is_expected.to eq %w(mizzy serverspec) }
    end

    context 'given a gem name not included in the dictionary' do
      subject { described_class.new.lookup('not_exist') }
      it { is_expected.to eq [nil, nil] }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
compare_linker-1.4.8 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.7 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.6 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.5 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.4 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.3 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.2 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.1 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.4.0 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.8 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.7 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.6 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.5 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.4 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.3 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.2 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.1 spec/lib/compare_linker/gem_dictionary_spec.rb
compare_linker-1.3.0 spec/lib/compare_linker/gem_dictionary_spec.rb