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/constraints/feature_constrainer_spec.rb')
-rw-r--r--spec/lib/constraints/feature_constrainer_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/lib/constraints/feature_constrainer_spec.rb b/spec/lib/constraints/feature_constrainer_spec.rb
deleted file mode 100644
index c98dc694186..00000000000
--- a/spec/lib/constraints/feature_constrainer_spec.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe Constraints::FeatureConstrainer do
- describe '#matches' do
- it 'calls Feature.enabled? with the correct arguments' do
- gate = stub_feature_flag_gate("an object")
-
- expect(Feature).to receive(:enabled?)
- .with(:feature_name, gate, default_enabled: true)
-
- described_class.new(:feature_name, gate, default_enabled: true).matches?(double('request'))
- end
- end
-end