Sha256: 1982e9b516d645e55b99aca2585c6a2c4e5a355c979f1f6f290ee7584ccf0a76

Contents?: true

Size: 1.82 KB

Versions: 11

Compression:

Stored size: 1.82 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?style=flat-square)](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?style=flat-square)](http://doge.mit-license.org)
![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](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?style=flat-square)](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?style=flat-square)](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?style=flat-square)](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

11 entries across 11 versions & 2 rubygems

Version Path
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
badgerbadgerbadger-0.15.0 features/licenses.feature
cvss-suite-1.0.7 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.6 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.5 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.4 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.3 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.2 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.1 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
cvss-suite-1.0.0 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature
badgerbadgerbadger-0.14.0 features/licenses.feature