debian-mirror-gitlab/spec/support/shared_examples/namespaces/members.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
345 B
Ruby
Raw Permalink Normal View History

2023-03-17 16:20:25 +05:30
# 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