f540ffcef6
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
13 lines
409 B
Ruby
13 lines
409 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Constraints::FeatureConstrainer do
|
|
describe '#matches' do
|
|
it 'calls Feature.enabled? with the correct arguments' do
|
|
expect(Feature).to receive(:enabled?).with(:feature_name, "an object", default_enabled: true)
|
|
|
|
described_class.new(:feature_name, "an object", default_enabled: true).matches?(double('request'))
|
|
end
|
|
end
|
|
end
|