Sha256: 82f851903d6f7160fee43350e3bb80e46bb06b1dc2c2d35a31c6cadb66060d1b
Contents?: true
Size: 1.32 KB
Versions: 16
Compression:
Stored size: 1.32 KB
Contents
Given(/^I have an app with license finder that depends on an MIT license$/) do @user = ::DSL::User.new @user.create_nonrails_app @user.add_dependency_to_app 'mit_gem', :license => 'MIT' end Given(/^I have an app with license finder that depends on an BSD license$/) do @user = ::DSL::User.new @user.create_nonrails_app @user.add_dependency_to_app 'bsd_gem', :license => 'BSD' end When(/^I whitelist the BSD license$/) do @user.execute_command 'license_finder whitelist add BSD' end When(/^I whitelist the Expat license$/) do @user.execute_command 'license_finder whitelist add Expat' end When(/^I view the whitelisted licenses$/) do @output = @user.execute_command 'license_finder whitelist list' end When(/^I remove Expat from the whitelist$/) do @output = @user.execute_command 'license_finder whitelist remove Expat' end Then(/^I should not see a MIT licensed gem unapproved$/) do @output = @user.execute_command 'license_finder --quiet' @output.should_not include 'mit_gem' end Then(/^I should see Expat in the output$/) do @output.should include 'Expat' end Then(/^I should not see Expat in the output$/) do @output.should_not include 'Expat' end Then(/^I should not see a BSD licensed gem unapproved$/) do @output = @user.execute_command 'license_finder --quiet' @output.should_not include 'bsd_gem' end
Version data entries
16 entries across 16 versions & 1 rubygems