Commit c3bbbff673bf0c877ed19991e5588e7063701ed7
1 parent
f8a4a760
Exists in
master
and in
4 other branches
specs for repository tag_names, branch_names
Showing
1 changed file
with
16 additions
and
0 deletions
Show diff stats
spec/lib/gitlab/git/repository_spec.rb
| ... | ... | @@ -104,4 +104,20 @@ describe Gitlab::Git::Repository do |
| 104 | 104 | it { should include("f0f14c8eaba69ebddd766498a9d0b0e79becd633") } |
| 105 | 105 | it { should_not include("bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a") } |
| 106 | 106 | end |
| 107 | + | |
| 108 | + describe "branch names" do | |
| 109 | + subject { repository.branch_names } | |
| 110 | + | |
| 111 | + it { should have(32).elements } | |
| 112 | + it { should include("master") } | |
| 113 | + it { should_not include("branch-from-space") } | |
| 114 | + end | |
| 115 | + | |
| 116 | + describe "tag names" do | |
| 117 | + subject { repository.tag_names } | |
| 118 | + | |
| 119 | + it { should have(16).elements } | |
| 120 | + it { should include("v1.2.0") } | |
| 121 | + it { should_not include("v5.0.0") } | |
| 122 | + end | |
| 107 | 123 | end | ... | ... |