Sha256: bcd83b00083c12657b944244296d64132a6e75b587c384c17dc31d9b2d3b9d87
Contents?: true
Size: 845 Bytes
Versions: 2
Compression:
Stored size: 845 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" expect(@user).to 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 expect(@user).to_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| expect(gpl_gem[:class].split(' ')).to include "approved" expect(gpl_gem).to have_content "Julian" expect(gpl_gem).to have_content "We really need this" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.2 | features/step_definitions/manually_approved_steps.rb |
license_finder-1.2-java | features/step_definitions/manually_approved_steps.rb |