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
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-06-29 15:11:42 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-07-04 14:02:10 +0300
commitf39fe34afb4a69ebca462219abb881e243f4a955 (patch)
treec22324e01d13876a0e8874b1837a31745a085cf0 /spec
parent8a62f304ef541b93ac47dab3b69b645f2b65537a (diff)
Add test for GitalyClient::Ref#find_ref_name
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/gitaly_client/ref_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab/gitaly_client/ref_spec.rb b/spec/lib/gitlab/gitaly_client/ref_spec.rb
index 986ae348652..b7de7e598e3 100644
--- a/spec/lib/gitlab/gitaly_client/ref_spec.rb
+++ b/spec/lib/gitlab/gitaly_client/ref_spec.rb
@@ -78,4 +78,13 @@ describe Gitlab::GitalyClient::Ref do
expect { client.local_branches(sort_by: 'invalid_sort') }.to raise_error(ArgumentError)
end
end
+
+ describe '#find_ref_name', seed_helper: true do
+ let(:repository) { Gitlab::Git::Repository.new('default', TEST_REPO_PATH) }
+ let(:client) { described_class.new(repository) }
+ subject { client.find_ref_name(SeedRepo::Commit::ID, 'refs/heads/master') }
+
+ it { should be_utf8 }
+ it { should eq('refs/heads/master') }
+ end
end