summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/namespaces/members.rb
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