Skip to content

Business intelligence made simple

Improved create_query test method [skip ci]

Andrew Kaneac47d68bbc54
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 41362599..4adcde0b 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -26,8 +26,8 @@ class ActionDispatch::IntegrationTest
assert_response :success
end
- def create_query(statement: "SELECT 1", **attributes)
- Blazer::Query.create!(statement: statement, data_source: "main", status: "active", **attributes)
+ def create_query(name: "Test", statement: "SELECT 1", **attributes)
+ Blazer::Query.create!(name: name, statement: statement, data_source: "main", status: "active", **attributes)
end
def create_check(**attributes)