Sha256: fecb27f1530f4f3ff99e612fd112bcddae8d90b8ab337831e6a0072ba829b765

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

Feature: rake license:action_items
  As a user
  I want a rake task "license:action_items" that lists any dependencies with licenses that fall outside of my whitelist
  So that I know the limitations of distributing my application

  Background:
    Given I have an application setup with rake and license finder

  Scenario: Application with non-free dependency
    Given my app depends on a gem "gpl_licensed_gem" licensed with "GPL"
    And my app depends on a gem "mit_licensed_gem" licensed with "MIT"
    And I whitelist the "MIT" license
    When I run "rake license:action_items"
    Then I should see "gpl_licensed_gem" in its output
    And I should not see "mit_licensed_gem" in its output

  Scenario: Application with action items
    Given my app depends on a gem "gpl_licensed_gem" licensed with "GPL"
    And I whitelist the "MIT" license
    When I run "rake license:action_items"
    Then it should exit with status code 1

  Scenario: Application with no action items
    Given I whitelist the "MIT" license
    When I run "rake license:action_items"
    Then I should see "All gems are approved for use" in its output
    And it should exit with status code 0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
license_finder-0.5.0 features/rake_tasks/action_items.feature