/
bugs.feature
52 lines (47 loc) · 1.78 KB
/
bugs.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Feature: Bug regression testing
As a developer
I want to ensure fixed bugs stay fixed
So that I don't have to fix them again!
Background:
Given a mocked home directory
#
# issue #58, https://github.com/mroth/lolcommits/issues/58
#
Scenario: handle git repos with spaces in directory name
Given I am in a git repo named "test lolol" with lolcommits enabled
And I run `git commit --allow-empty -m 'can haz commit'`
Then the output should contain "*** Preserving this moment in history."
And a directory named "../.lolcommits/test-lolol" should exist
#
# issue #68, https://github.com/mroth/lolcommits/issues/68
#
@fake-interactive-rebase @slow_process
Scenario: Don't trigger capture during a git rebase
Given I am in a git repo named "yuh8history" with lolcommits enabled
And I do 3 git commits
When I run `git rebase -i HEAD~2`
Then there should be exactly 3 jpgs in "~/.lolcommits/yuh8history"
#
# issue #87, https://github.com/mroth/lolcommits/issues/87
#
@fake-no-imagemagick
Scenario: gracefully fail when imagemagick is not installed
When I run `lolcommits`
Then the output should contain:
"""
ImageMagick does not appear to be properly installed
"""
And the exit status should be 1
#
# issue #50, https://github.com/mroth/lolcommits/issues/50
#
Scenario: catch upstream bug with ruby-git and color=always
Given I am in a git repo named "whatev" with lolcommits enabled
And I run `git config color.ui always`
When I run `lolcommits`
Then the output should contain:
"""
Due to a bug in the ruby-git library, git config for color.ui cannot be set to 'always'.
"""
And the output should contain "Try setting it to 'auto' instead!"
And the exit status should be 1