Sha256: 8ca986db40989497c780b5bf824a38d48887d0e61aa479603c9ca009652873d0

Contents?: true

Size: 809 Bytes

Versions: 3

Compression:

Stored size: 809 Bytes

Contents

Given(/^I have an app that depends on a GPL licensed gem$/) do
  @user = ::DSL::User.new
  @user.create_ruby_app
  @user.create_and_depend_on_gem "gpl_gem", license: "GPL"
end

When(/^I approve that gem$/) do
  @user.execute_command "license_finder"
  @user.should be_seeing "gpl_gem"
  @user.execute_command "license_finder approve gpl_gem --approver 'Julian' --message 'We really need this'"
  @user.execute_command "license_finder --quiet"
end

Then(/^I should not see that gem in the console output$/) do
  @user.should_not be_seeing "gpl_gem"
end

Then(/^I should see that gem approved in dependencies\.html$/) do
  @user.in_gem_html("gpl_gem") do |gpl_gem|
    gpl_gem[:class].should == "approved"
    gpl_gem.should have_content "Julian"
    gpl_gem.should have_content "We really need this"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
license_finder-1.1.0 features/step_definitions/manually_approved_steps.rb
license_finder-1.0.1 features/step_definitions/manually_approved_steps.rb
license_finder-1.0.0.1 features/step_definitions/manually_approved_steps.rb