-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit: Make empty commits and forward args to Git (closes #71)
- Loading branch information
Showing
9 changed files
with
131 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@announce-output | ||
Feature: Creating a git commit from a Pivotal Tracker story | ||
|
||
Scenario: Extra arguments are forwarded to "git commit" | ||
Given I have staged changes | ||
|
||
When I run `geordi commit --extra-option` interactively | ||
# No optional message | ||
And I type "" | ||
Then the output should contain "Util.system! git, commit, --allow-empty, -m, [#12] Test Story, --extra-option" | ||
|
||
|
||
Scenario: With no staged changes, a warning is printed | ||
When I run `geordi commit --allow-empty` interactively | ||
# No optional message | ||
And I type "" | ||
Then the output should contain "> No staged changes. Will create an empty commit." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
When /^I wait for (\d+) seconds?$/ do |seconds| | ||
sleep seconds.to_i | ||
end | ||
|
||
Given 'I have staged changes' do | ||
ENV['GEORDI_TESTING_STAGED_CHANGES'] = 'true' | ||
end | ||
|
||
After do | ||
ENV['GEORDI_TESTING_STAGED_CHANGES'] = 'false' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Geordi | ||
VERSION = '2.6.0' | ||
VERSION = '2.7.0' | ||
end |