Sha256: e1115f1fb8f76969bf6123f92ebb50f7f1493a92f537f77c30f5176aad657d57

Contents?: true

Size: 922 Bytes

Versions: 1

Compression:

Stored size: 922 Bytes

Contents

Feature: rake license:action_items:ok
  As a user
  I want a rake task "license:action_items:ok" that returns 0/1 exit codes based on whether or not there any action items
  So that I can create a CI build that fails if there are any action items

  Background:
    Given I have a rails application with license finder

  Scenario: Application with action items
    Given my rails app depends on a gem "gpl_licensed_gem" licensed with "GPL"
    And I whitelist the "MIT" license
    When I run "bundle exec rake license:action_items:ok"
    Then I should see "Dependencies that need approval" in its output
    And it should exit with status code 1

  Scenario: Application with no action items
    Given I whitelist the following licenses: "MIT, other"
    When I run "bundle exec rake license:action_items:ok"
    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.4.5 features/rake_tasks/action_items_ok.feature