diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-06-29 15:11:42 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-07-04 14:02:10 +0300 |
commit | f39fe34afb4a69ebca462219abb881e243f4a955 (patch) | |
tree | c22324e01d13876a0e8874b1837a31745a085cf0 /spec | |
parent | 8a62f304ef541b93ac47dab3b69b645f2b65537a (diff) |
Add test for GitalyClient::Ref#find_ref_name
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/gitaly_client/ref_spec.rb | 9 |
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 |