Sha256: 2ae6b5d7704096abbc050a9c498a48d1b508157cc651f75fa3f14a9ff408ca59

Contents?: true

Size: 1.32 KB

Versions: 19

Compression:

Stored size: 1.32 KB

Contents

Feature: Users should get the license included
  As a user
  I'd like to be able to include a license
  So that I don't have to hunt it down for every new project

  Background:
    Given the directory "tmp/newgem" does not exist

  Scenario: Use a non-stock license
    When I successfully run `methadone -l custom tmp/newgem`
    Then newgem's license should be an empty file
    And the README should reference the need for a license

  Scenario Outline: Include one of a few stock licenses
    When I successfully run `methadone -l <license> tmp/newgem`
    Then newgem's license should be the <license> license
    And the README should reference this license

    Examples:
      |license|
      |apache|
      |mit|

  Scenario: We only support a few licenses
    When I run `methadone -l foobar tmp/newgem`
    Then the exit status should not be 0
    And the stderr should match /invalid argument: -l foobar/

  Scenario: No license specified
    When I successfully run `methadone tmp/newgem`
    Then the stderr should contain "warning: your app has no license"
    And the README should not reference a license

  Scenario: No license specified explicitly
    When I successfully run `methadone -l NONE tmp/newgem`
    Then the stderr should not contain "warning: your app has no license"
    And the README should not reference a license

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
methadone-1.3.2 features/license.feature
methadone-1.3.1 features/license.feature
methadone-1.3.0 features/license.feature
methadone-1.2.6 features/license.feature
methadone-1.2.5 features/license.feature
methadone-1.2.4 features/license.feature
methadone-1.2.3 features/license.feature
methadone-1.2.2 features/license.feature
methadone-1.2.1 features/license.feature
methadone-1.2.0 features/license.feature
methadone-1.1.0 features/license.feature
methadone-1.0.0 features/license.feature
methadone-1.0.0.rc6 features/license.feature
methadone-1.0.0.rc5 features/license.feature
methadone-1.0.0.rc4 features/license.feature
methadone-1.0.0.rc3 features/license.feature
methadone-1.0.0.rc2 features/license.feature
methadone-1.0.0.rc1 features/license.feature
methadone-0.5.1 features/license.feature