Welcome to mirror list, hosted at ThFree Co, Russian Federation.

members.rb « namespaces « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed1ea23226c107aa5b640219db35ee2cef1b1b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

RSpec.shared_examples 'query without source filters' do
  it do
    expect(subject.where_values_hash.keys).not_to include('source_id', 'source_type')
  end
end

RSpec.shared_examples 'query with source filters' do
  it do
    expect(subject.where_values_hash.keys).to include('source_id', 'source_type')
  end
end