summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git/tag_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/git/tag_spec.rb')
-rw-r--r--spec/lib/gitlab/git/tag_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/tag_spec.rb b/spec/lib/gitlab/git/tag_spec.rb
index b51e3879f49..f5d0b6af6f0 100644
--- a/spec/lib/gitlab/git/tag_spec.rb
+++ b/spec/lib/gitlab/git/tag_spec.rb
@@ -69,4 +69,17 @@ describe Gitlab::Git::Tag, :seed_helper do
end
end
end
+
+ describe '#full_ref' do
+ subject do
+ described_class.new(repository, { name: 'master',
+ target: repository.commit.sha,
+ target_commit: repository.commit })
+ .full_ref
+ end
+
+ it 'returns the full ref' do
+ is_expected.to eq('refs/tags/master')
+ end
+ end
end