Sha256: 3577a65d9fb343905952bbc33e3abf4fea4e81c160aba5d36f07a416003aaca1

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

Given(/^I have an app that depends on an MIT license$/) do
  @user = ::DSL::User.new
  @user.create_ruby_app
  @user.create_and_depend_on_gem 'mit_gem', license: 'MIT'
end

Given(/^I have an app that depends on an BSD license$/) do
  @user = ::DSL::User.new
  @user.create_ruby_app
  @user.create_and_depend_on_gem '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
  @user.execute_command 'license_finder whitelist list'
end

When(/^I remove Expat from the whitelist$/) do
  @user.execute_command 'license_finder whitelist remove Expat'
end

Then(/^I should not see a MIT licensed gem unapproved$/) do
  @user.execute_command 'license_finder --quiet'
  @user.should_not be_seeing 'mit_gem'
end

Then(/^I should see Expat in the output$/) do
  @user.should be_seeing 'Expat'
end

Then(/^I should not see Expat in the output$/) do
  @user.should_not be_seeing 'Expat'
end

Then(/^I should not see a BSD licensed gem unapproved$/) do
  @user.execute_command 'license_finder --quiet'
  @user.should_not be_seeing 'bsd_gem'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
license_finder-1.1.1-java features/step_definitions/configure_whitelist_steps.rb
license_finder-1.1.1 features/step_definitions/configure_whitelist_steps.rb
license_finder-1.1.0 features/step_definitions/configure_whitelist_steps.rb
license_finder-1.0.1 features/step_definitions/configure_whitelist_steps.rb
license_finder-1.0.0.1 features/step_definitions/configure_whitelist_steps.rb