Sha256: 719025f0cce8f71b503fc8dbd2b62d1d7435c2ef865c2c174bf5abba20b72787

Contents?: true

Size: 968 Bytes

Versions: 16

Compression:

Stored size: 968 Bytes

Contents

Given(/^I have an app with license finder that depends on a GPL licensed gem in the test bundler group$/) do
  @user = ::DSL::User.new
  @user.create_nonrails_app
  @user.add_dependency_to_app 'gpl_gem', :license => 'GPL', :bundler_groups => 'test'
end

When(/^I add the test group to the ignored bundler groups$/) do
  @user.execute_command('license_finder ignored_bundler_group add test')
end

When(/^I remove the test group from the ignored bundler groups$/) do
  @user.execute_command('license_finder ignored_bundler_group remove test')
end

When(/^I get the ignored groups$/) do
  @output = @user.execute_command('license_finder ignored_bundler_group list')
end

Then(/^I should not see the GPL licensed gem in the output$/) do
  @output.should_not include 'gpl_gem'
end

Then(/^I should see the test group in the output$/) do
  @output.should include 'test'
end

Then(/^I should not see the test group in the output$/) do
  @output.should_not include 'test'
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
license_finder-1.0.0.0 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-1.0.0.0-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.5.1-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.5.1 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.5 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.5-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.4-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.4 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.3-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.3 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.2-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.2 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.1-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.1 features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.0-java features/step_definitions/ignore_bundle_groups_steps.rb
license_finder-0.9.0 features/step_definitions/ignore_bundle_groups_steps.rb