@@ -36,7 +36,7 @@ describe GitVersion do
36
36
37
37
version = git.get_version
38
38
39
- version.should eq(" 1.0.1-SNAPSHOT.#{ hash } " )
39
+ version.should eq(" 1.0.1-SNAPSHOT.1. #{ hash } " )
40
40
41
41
tmp.exec %( git checkout -b feature-branch)
42
42
tmp.exec %( touch file2.txt)
@@ -90,23 +90,23 @@ describe GitVersion do
90
90
91
91
version = git.get_version
92
92
93
- version.should eq(" 2.0.0-SNAPSHOT.#{ hash } " )
93
+ version.should eq(" 2.0.0-SNAPSHOT.1. #{ hash } " )
94
94
95
95
tmp.exec %( git commit --no-gpg-sign --allow-empty -m "breaking: XYZ")
96
96
97
97
hash = git.current_commit_hash
98
98
99
99
version = git.get_version
100
100
101
- version.should eq(" 2.0.0-SNAPSHOT.#{ hash } " )
101
+ version.should eq(" 2.0.0-SNAPSHOT.2. #{ hash } " )
102
102
103
103
tmp.exec %( git commit --no-gpg-sign --allow-empty -m "feature: XYZ")
104
104
105
105
hash = git.current_commit_hash
106
106
107
107
version = git.get_version
108
108
109
- version.should eq(" 2.0.0-SNAPSHOT.#{ hash } " )
109
+ version.should eq(" 2.0.0-SNAPSHOT.3. #{ hash } " )
110
110
ensure
111
111
tmp.cleanup
112
112
end
@@ -311,7 +311,7 @@ describe GitVersion do
311
311
tmp.exec %( git commit --no-gpg-sign --allow-empty -m "2")
312
312
hash = git.current_commit_hash
313
313
version = git.get_version
314
- version.should eq(" 1.0.1-SNAPSHOT.#{ hash } " )
314
+ version.should eq(" 1.0.1-SNAPSHOT.1. #{ hash } " )
315
315
316
316
tmp.exec %( git checkout -b myfeature)
317
317
tmp.exec %( git commit --no-gpg-sign --allow-empty -m "3")
@@ -375,7 +375,7 @@ describe GitVersion do
375
375
version = git.get_version
376
376
hash = git.current_commit_hash
377
377
tmp.exec %( git tag "#{ version } ")
378
- version.should eq(" 2.0.0-SNAPSHOT.#{ hash } " )
378
+ version.should eq(" 2.0.0-SNAPSHOT.1. #{ hash } " )
379
379
380
380
tmp.exec %( git checkout master)
381
381
tmp.exec %( git merge --no-gpg-sign --no-ff dev)
@@ -403,7 +403,7 @@ describe GitVersion do
403
403
version = git.get_version
404
404
hash = git.current_commit_hash
405
405
tmp.exec %( git tag "#{ version } ")
406
- version.should eq(" 1.0.1-SNAPSHOT.#{ hash } " )
406
+ version.should eq(" 1.0.1-SNAPSHOT.1. #{ hash } " )
407
407
408
408
tmp.exec %( git checkout master)
409
409
tmp.exec %( git merge --no-gpg-sign --no-ff dev)
0 commit comments