/
plugins.feature
33 lines (30 loc) · 1.45 KB
/
plugins.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
Feature: Plugins Work
Scenario: Lolcommits.com integration works
Given a git repository named "dot_com"
And an empty file named "dot_com/FOOBAR"
When I cd to "dot_com"
And I successfully run `lolcommits --enable`
And I run `lolcommits --config` and wait for output
And I enter "dot_com" for "Plugin Name"
And I enter "true" for "enabled"
And I enter "b2a70ac0b64e012fa61522000a8c42dc" for "api_key"
And I enter "b2a720b0b64e012fa61522000a8c42dc" for "api_secret"
And I enter "c4aed530b64e012fa61522000a8c42dc" for "repo_id"
Then I should be presented "Successfully Configured"
When I successfully run `git add .`
And I successfully run `git commit -m 'can haz commit'`
Then the output should contain "*** Preserving this moment in history."
And there should be 1 jpg in "../.lolcommits/dot_com"
Scenario: Disable loltext
Given a git repository named "loltext"
And an empty file named "loltext/FOOBAR"
When I cd to "loltext"
And I successfully run `lolcommits --enable`
And I run `lolcommits --config` and wait for output
And I enter "loltext" for "Plugin Name"
And I enter "false" for "enabled"
Then I should be presented "Successfully Configured"
When I successfully run `git add .`
And I successfully run `git commit -m 'can haz commit'`
Then the output should contain "*** Preserving this moment in history."
And there should be 1 jpg in "../.lolcommits/loltext"