Sha256: 813003ece2f68890cfa7f9429bccd4fb85b1fd02cbec17d59cf5e1102d8eb9ad

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

Feature: Release
  In order to conveniently make a release of my project
  As a developer
  I want shoe to give me a rake task

  Background:
    Given I have created a directory called "origin"
    And I have run git init --bare inside "origin"
    Given I have created a project called "my_project"
    And I have run git init inside "my_project"
    And I have run git add . inside "my_project"
    And I have run git commit -m "Initial commit" inside "my_project"

  Scenario: I can release
    When I replace "0.0.0" with "0.1.0" in the file "my_project/lib/my_project/version.rb"
    And I run bundle exec rake --tasks inside "my_project"
    Then I should see "rake release" on standard out

  Scenario: I cannot release when the version is 0.0.0
    When I run bundle exec rake --tasks inside "my_project"
    Then I should not see "rake release" on standard out

  Scenario: I cannot release when I already have a tag for the current version
    When I run git tag v0.1.0 inside "my_project"
    And I replace "0.0.0" with "0.1.0" in the file "my_project/lib/my_project/version.rb"
    And I run bundle exec rake --tasks inside "my_project"
    Then I should not see "rake release" on standard out

  Scenario: I cannot release from a branch other than master
    When I run git checkout -b topic inside "my_project"
    And I replace "0.0.0" with "0.1.0" in the file "my_project/lib/my_project/version.rb"
    And I run bundle exec rake --tasks inside "my_project"
    Then I should not see "rake release" on standard out

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoe-0.5.1 features/release.feature
shoe-0.5.0 features/release.feature
shoe-0.4.0 features/release.feature
shoe-0.3.0 features/release.feature
shoe-0.2.0 features/release.feature