spec/factories/adhoq_queries.rb in adhoq-0.0.3 vs spec/factories/adhoq_queries.rb in adhoq-0.0.4
- old
+ new
@@ -23,7 +23,13 @@
adhoq_queries q
ORDER BY
use_count DESC, id ASC
SQL
end
+
+ trait :greeting do
+ name 'greeting'
+ description 'Static query for testing data'
+ query 'SELECT "hello" AS name ,"English greeting message" AS description'
+ end
end
end