Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 22:21:24 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 22:21:24 +0400
commitc3bbbff673bf0c877ed19991e5588e7063701ed7 (patch)
treeecfab9e07452b77ef8456e22a23fb80c2abd46dd /spec/lib
parentf8a4a760480a2395ca371c4ab6201344a186fa39 (diff)
specs for repository tag_names, branch_names
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/git/repository_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb
index 3c2e3423d3a..2b0550aa72a 100644
--- a/spec/lib/gitlab/git/repository_spec.rb
+++ b/spec/lib/gitlab/git/repository_spec.rb
@@ -104,4 +104,20 @@ describe Gitlab::Git::Repository do
it { should include("f0f14c8eaba69ebddd766498a9d0b0e79becd633") }
it { should_not include("bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a") }
end
+
+ describe "branch names" do
+ subject { repository.branch_names }
+
+ it { should have(32).elements }
+ it { should include("master") }
+ it { should_not include("branch-from-space") }
+ end
+
+ describe "tag names" do
+ subject { repository.tag_names }
+
+ it { should have(16).elements }
+ it { should include("v1.2.0") }
+ it { should_not include("v5.0.0") }
+ end
end