diff options
Diffstat (limited to 'spec/lib/extracts_ref_spec.rb')
-rw-r--r-- | spec/lib/extracts_ref_spec.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/lib/extracts_ref_spec.rb b/spec/lib/extracts_ref_spec.rb index ca8af9413f3..93a09bf5a0a 100644 --- a/spec/lib/extracts_ref_spec.rb +++ b/spec/lib/extracts_ref_spec.rb @@ -48,13 +48,11 @@ RSpec.describe ExtractsRef do context 'when a ref_type parameter is provided' do let(:params) { ActionController::Parameters.new(path: path, ref: ref, ref_type: 'tags') } - context 'and the use_ref_type_parameter feature flag is enabled' do - it 'sets a fully_qualified_ref variable' do - fully_qualified_ref = "refs/tags/#{ref}" - expect(container.repository).to receive(:commit).with(fully_qualified_ref) - assign_ref_vars - expect(@fully_qualified_ref).to eq(fully_qualified_ref) - end + it 'sets a fully_qualified_ref variable' do + fully_qualified_ref = "refs/tags/#{ref}" + expect(container.repository).to receive(:commit).with(fully_qualified_ref) + assign_ref_vars + expect(@fully_qualified_ref).to eq(fully_qualified_ref) end end end |