Sha256: f582344af094721dced7e81c5770b3aefc906bd00dcfaaa4fa541d70179259b9

Contents?: true

Size: 774 Bytes

Versions: 2

Compression:

Stored size: 774 Bytes

Contents

Given(/^I have an app with license finder that depends on an other licensed gem$/) do
  @user = ::DSL::User.new
  @user.create_nonrails_app
  @user.add_dependency_to_app 'other_gem', version: '1.0', license: 'other'
  @user.add_dependency_to_app 'control_gem', version: '1.0', license: 'other'
end

When(/^I set that gems license to MIT from the command line$/) do
  @user.execute_command 'license_finder --quiet'
  @user.execute_command 'license_finder license MIT other_gem'
  @output = @user.execute_command 'license_finder --quiet'
end

Then(/^I should see that other gems license set to MIT$/) do
  @output.should include 'other_gem, 1.0, MIT'
end

Then(/^I see other licensed gems have not changed licenses$/) do
  @output.should include 'control_gem, 1.0, other'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-1.0.0.0 features/step_definitions/set_license_steps.rb
license_finder-1.0.0.0-java features/step_definitions/set_license_steps.rb