Business intelligence made simple
Improved tests [skip ci]
Andrew Kane8f07ebc8d72e
diff --git a/test/adapters/mongodb_test.rb b/test/adapters/mongodb_test.rbindex 35754019..154a1136 100644--- a/test/adapters/mongodb_test.rb+++ b/test/adapters/mongodb_test.rb@@ -7,7 +7,16 @@ class MongodbTest < ActionDispatch::IntegrationTest"mongodb"end+ def setup+ @@once ||= begin+ client = Mongo::Client.new(["127.0.0.1:27017"], database: "blazer_test")+ client[:items].drop+ client[:items].insert_one({hello: "world"})+ true+ end+ end+def test_run- assert_result [], "db.items.find()"+ assert_result [{"hello" => "world"}], "db.items.find({}, {hello: 1, _id: 0})"endenddiff --git a/test/adapters/presto_test.rb b/test/adapters/presto_test.rbindex 971fb403..33e93a35 100644--- a/test/adapters/presto_test.rb+++ b/test/adapters/presto_test.rb@@ -7,7 +7,9 @@ class PrestoTest < ActionDispatch::IntegrationTest"presto"end- # TODO fix test_tables+ def test_tables+ # needs different connector+ enddef test_runassert_result [{"hello" => "world"}], "SELECT 'world' AS hello"