Sha256: 9dfcc4d731b9b51e2ff62515bb01d366414af06ea04587d99c0d3ef4d2c049fa

Contents?: true

Size: 1.71 KB

Versions: 20

Compression:

Stored size: 1.71 KB

Contents

Feature: Get license badges

  Background:
    Given git remote is "https://github.com/doge/wow.git"

  @license @mit
  Scenario: Generate MIT license
    When I successfully run `badger badge /tmp/wow_repo`
    Then the output should contain:
    """
![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
    """
    And the output should not contain:
    """
Apache
    """
    And the output should not contain:
    """
![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
    """

  @license @apache
  Scenario: Generate Apache license
    When I successfully run `badger badge /tmp/wow_repo`
    Then the output should contain:
    """
![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
    """
    And the output should not contain:
    """
GPL
    """

  @license @gpl2
  Scenario: Generate GPL2 license
    When I successfully run `badger badge /tmp/wow_repo`
    Then the output should contain:
    """
![License](http://img.shields.io/:license-gpl2-blue.svg)](http://www.gnu.org/licenses/gpl-2.0.html)
    """
    And the output should not contain:
    """
MIT
    """

  @license @gpl3
  Scenario: Generate GPL3 license
    When I successfully run `badger badge /tmp/wow_repo`
    Then the output should contain:
    """
![License](http://img.shields.io/:license-gpl3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0.html)
    """

  @license @doge-license
  Scenario: Attempt to generate an unknown license type
    When I successfully run `badger badge /tmp/wow_repo`
    Then the output should not contain:
    """
License
    """

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
badgerbadgerbadger-0.13.0 features/licenses.feature
badgerbadgerbadger-0.12.0 features/licenses.feature
badgerbadgerbadger-0.11.2 features/licenses.feature
badgerbadgerbadger-0.11.1 features/licenses.feature
badgerbadgerbadger-0.10.2 features/licenses.feature
badgerbadgerbadger-0.10.1 features/licenses.feature
badgerbadgerbadger-0.10.0 features/licenses.feature
badgerbadgerbadger-0.9.0 features/licenses.feature
badgerbadgerbadger-0.8.3 features/licenses.feature
badgerbadgerbadger-0.8.2 features/licenses.feature
badgerbadgerbadger-0.8.1 features/licenses.feature
badgerbadgerbadger-0.8.0 features/licenses.feature
badgerbadgerbadger-0.7.5 features/licenses.feature
badgerbadgerbadger-0.7.4 features/licenses.feature
badgerbadgerbadger-0.7.3 features/licenses.feature
badgerbadgerbadger-0.7.2 features/licenses.feature
badgerbadgerbadger-0.7.1 features/licenses.feature
badgerbadgerbadger-0.7.0 features/licenses.feature
badgerbadgerbadger-0.6.3 features/licenses.feature
badgerbadgerbadger-0.6.1 features/licenses.feature