Sha256: 3a9c33ea200f83e047b27e7a0cee18f21e885114974eee8e0fe7079fbb023219
Contents?: true
Size: 825 Bytes
Versions: 2
Compression:
Stored size: 825 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].split(' ').should include "approved" gpl_gem.should have_content "Julian" gpl_gem.should have_content "We really need this" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.1.1-java | features/step_definitions/manually_approved_steps.rb |
license_finder-1.1.1 | features/step_definitions/manually_approved_steps.rb |