Skip to content

Business intelligence made simple

Improved Cassandra test [skip ci]

Andrew Kane3fe1ab62d1a5
diff --git a/test/adapters/cassandra_test.rb b/test/adapters/cassandra_test.rb
index cc3c0729..417d2a55 100644
--- a/test/adapters/cassandra_test.rb
+++ b/test/adapters/cassandra_test.rb
@@ -1,7 +1,8 @@
require_relative "../test_helper"
-# CREATE KEYSPACE blazer_test
-# WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
+# CREATE KEYSPACE blazer_test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
+# USE blazer_test;
+# CREATE TABLE items (id int, name text, PRIMARY KEY (id));
class CassandraTest < ActionDispatch::IntegrationTest
include AdapterTest
@@ -9,4 +10,8 @@ class CassandraTest < ActionDispatch::IntegrationTest
def data_source
"cassandra"
end
+
+ def test_run
+ assert_result [{"count" => "0"}], "SELECT COUNT(*) FROM items"
+ end
end