From a0ab0160a0538cb178b098f11e646d307f7ef5c1 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Thu, 8 Nov 2012 17:54:15 -0500 Subject: [PATCH] Switch to lowercase keyspace name. Must be my version of cassandra (1.1.5), but I could not get the tests to run without changing to a lowercase keyspace name. I tried just doing the include check with lowercase, but cassandra really did not like the switching of case in various places. This seems to work best from what I can tell. --- spec/spec_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 26289f3..3273040 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -23,10 +23,10 @@ def yaml_fixture(file) def setup_cassandra_connection connection = CassandraCQL::Database.new(["127.0.0.1:9160"], {}, :retries => 5, :timeout => 1) - if !connection.keyspaces.map(&:name).include?("CassandraCQLTestKeyspace") - connection.execute("CREATE KEYSPACE CassandraCQLTestKeyspace WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1") + if !connection.keyspaces.map(&:name).include?("cassandra_cql_test") + connection.execute("CREATE KEYSPACE cassandra_cql_test WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1") end - connection.execute("USE CassandraCQLTestKeyspace") + connection.execute("USE cassandra_cql_test") connection end