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
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/extracts_ref_spec.rb')
-rw-r--r--spec/lib/extracts_ref_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/lib/extracts_ref_spec.rb b/spec/lib/extracts_ref_spec.rb
index 9ff11899e89..c7186011654 100644
--- a/spec/lib/extracts_ref_spec.rb
+++ b/spec/lib/extracts_ref_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe ExtractsRef do
+RSpec.describe ExtractsRef, feature_category: :source_code_management do
include described_class
include RepoHelpers
@@ -98,6 +98,12 @@ RSpec.describe ExtractsRef do
it { is_expected.to eq(nil) }
end
+
+ context 'when ref_type is a hash' do
+ let(:ref_type) { { 'just' => 'hash' } }
+
+ it { is_expected.to eq(nil) }
+ end
end
it_behaves_like 'extracts refs'