Sha256: 4cb16dd8d79fa769c9bc8c02683431f7b7e8d94388b1bb47282790ae8ed8a749

Contents?: true

Size: 876 Bytes

Versions: 5

Compression:

Stored size: 876 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
  @user.should_not be_seeing 'gpl_gem'
end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

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