Commit c3bbbff6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

specs for repository tag_names, branch_names

parent f8a4a760
...@@ -104,4 +104,20 @@ describe Gitlab::Git::Repository do ...@@ -104,4 +104,20 @@ describe Gitlab::Git::Repository do
it { should include("f0f14c8eaba69ebddd766498a9d0b0e79becd633") } it { should include("f0f14c8eaba69ebddd766498a9d0b0e79becd633") }
it { should_not include("bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a") } it { should_not include("bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a") }
end 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 end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment