Sha256: 02a70f39885f2d01eeebd4d3730c5d03f64e52a3e5a6826336c5b98d0081871a
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 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 expect(@user).to be_seeing 'other_gem, 1.0, MIT' end Then(/^I should see other gems have not changed their licenses$/) do expect(@user).to 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" expect(@user).to be_seeing_something_like /changed_gem.*Ruby/ end Then(/^the gem should keep its manually assigned license$/) do expect(@user).to be_seeing_something_like /changed_gem.*ruby/ end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.2 | features/step_definitions/manually_assigned_license_steps.rb |
license_finder-1.2-java | features/step_definitions/manually_assigned_license_steps.rb |