Fix failing test.

This commit is contained in:
Guo Xiang Tan 2020-08-27 09:36:51 +08:00
parent 79e8596332
commit 353da45b6f
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 2 additions and 3 deletions

View File

@ -8,12 +8,11 @@ describe Guardian do
def make_query(group_ids = []) def make_query(group_ids = [])
query = DataExplorer::Query.create!(name: "Query number #{Fabrication::Sequencer.sequence("query-id", 1)}", sql: "SELECT 1") query = DataExplorer::Query.create!(name: "Query number #{Fabrication::Sequencer.sequence("query-id", 1)}", sql: "SELECT 1")
group_ids.each do |group_id| group_ids.each do |group_id|
query.query_groups.create!(group_id: group_id) query.query_groups.create!(group_id: group_id)
end end
group_ids.each do |group_id|
query.query_groups.create!(group_id: group_id)
end
query query
end end