Sha256: fffc4573010d06e248ce96e27a9caf0919ee4db68e135ee07de1a872e9f99020
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'spec_helper' module LicenseFinder describe BundlerPackage do subject { described_class.new(gemspec, bundler_dependency) } let(:gemspec) do Gem::Specification.new do |s| s.name = 'spec_name' s.version = '2.1.3' s.authors = ['first', 'second'] s.summary = 'summary' s.description = 'description' s.homepage = 'homepage' s.licenses = ['MIT', 'GPL'] s.add_dependency 'foo' end end let(:bundler_dependency) { double(:dependency, groups: [:staging, :assets]) } its(:name) { should == 'spec_name' } its(:version) { should == '2.1.3' } its(:authors) { should == 'first, second' } its(:summary) { should == "summary" } its(:description) { should == "description" } its(:homepage) { should == "homepage" } its(:groups) { should == %w[staging assets] } its(:children) { should == ['foo'] } its(:license_names_from_spec) { should eq ['MIT', 'GPL'] } its(:install_path) { should =~ /spec_name-2\.1\.3\z/ } end end
Version data entries
4 entries across 4 versions & 1 rubygems