Sha256: d595e73f3e248c92fe86943159d95ed3d201632488d92d47b8c19c13e3cc0724
Contents?: true
Size: 1021 Bytes
Versions: 12
Compression:
Stored size: 1021 Bytes
Contents
require 'spec_helper' module LicenseFinder describe GoPackage do let(:options) { { 'ImportPath' => 'github.com/pivotal/spec_name', 'Rev' => '4326c3435332d06b410a2672d28d1343c4059fae', } } let(:full_version) { true } subject { described_class.from_dependency(options, Pathname.new('/Go/src'), full_version) } its(:name) { should == 'github.com/pivotal/spec_name' } its(:version) { should == '4326c3435332d06b410a2672d28d1343c4059fae' } its(:install_path) { should == '/Go/src/github.com/pivotal/spec_name' } its(:package_manager) { should == "Go" } context 'when full version is set to false' do let(:full_version) { false } its(:version) { should == '4326c34' } end context 'when the install path is set in the options' do let(:options) { super().merge('InstallPath' => '/Go/vendor/src/github.com/pivotal/spec_name' ) } its(:install_path) { should == '/Go/vendor/src/github.com/pivotal/spec_name' } end end end
Version data entries
12 entries across 12 versions & 1 rubygems