Sha256: 4ef3512c17e803c292d892faa7cf0b6cf4c72906007756d1664a946effaa5b38

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

Given(/^I have an app that depends on a few gems without known licenses$/) do
  @user = ::DSL::User.new
  @user.create_ruby_app
  @user.create_and_depend_on_gem 'other_gem', version: '1.0', license: 'other'
  @user.create_and_depend_on_gem 'control_gem', version: '1.0', license: 'other'
end

When(/^I set one gem's license to MIT from the command line$/) do
  @user.execute_command 'license_finder --quiet'
  @user.execute_command 'license_finder license MIT other_gem'
  @user.execute_command 'license_finder --quiet'
end

Then(/^I should see that gem's license set to MIT$/) do
  @user.should be_seeing 'other_gem, 1.0, MIT'
end

Then(/^I should see other gems have not changed their licenses$/) do
  @user.should be_seeing 'control_gem, 1.0, other'
end

Given(/^I have an app that depends on a manually licensed gem$/) do
  @user = ::DSL::User.new
  @user.create_ruby_app
  @user.create_and_depend_on_gem 'changed_gem', license: 'MIT'
  @user.execute_command "license_finder --quiet"
  @user.execute_command "license_finder license Ruby changed_gem"
  @user.should be_seeing_something_like /changed_gem.*Ruby/
end

Then(/^the gem should keep its manually assigned license$/) do
  @user.should be_seeing_something_like /changed_gem.*ruby/
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
license_finder-1.1.1-java features/step_definitions/manually_assigned_license_steps.rb
license_finder-1.1.1 features/step_definitions/manually_assigned_license_steps.rb
license_finder-1.1.0 features/step_definitions/manually_assigned_license_steps.rb
license_finder-1.0.1 features/step_definitions/manually_assigned_license_steps.rb
license_finder-1.0.0.1 features/step_definitions/manually_assigned_license_steps.rb