debian-mirror-gitlab/spec/models/concerns/from_union_spec.rb

16 lines
372 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe FromUnion do
2020-11-24 15:15:51 +05:30
[true, false].each do |sql_set_operator|
context "when sql-set-operators feature flag is #{sql_set_operator}" do
before do
stub_feature_flags(sql_set_operators: sql_set_operator)
2018-12-05 23:21:45 +05:30
end
2020-11-24 15:15:51 +05:30
it_behaves_like 'from set operator', Gitlab::SQL::Union
2018-12-05 23:21:45 +05:30
end
end
end