Sha256: 10146d97870c5d5982fca87c4880073e32125ab427b44a6d477a30ee3b404b11

Contents?: true

Size: 888 Bytes

Versions: 2

Compression:

Stored size: 888 Bytes

Contents

Given(/^I have an app that depends on a gem in the test bundler group$/) do
  @user = ::DSL::User.new
  @user.create_ruby_app
  @user.create_gem 'gpl_gem', license: 'GPL'
  @user.depend_on_local_gem 'gpl_gem', groups: ['test']
end

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

When(/^I stop ignoring the test group$/) do
  @user.execute_command('license_finder ignored_bundler_group remove test')
end

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

Then(/^I should not see the test gem in the output$/) do
  expect(@user).to_not be_seeing 'gpl_gem'
end

Then(/^I should see the test group in the output$/) do
  expect(@user).to be_seeing 'test'
end

Then(/^I should not see the test group in the output$/) do
  expect(@user).to_not be_seeing 'test'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-1.2 features/step_definitions/configure_bundler_groups_steps.rb
license_finder-1.2-java features/step_definitions/configure_bundler_groups_steps.rb