test/connection_test.rb in sessionm-cassandra_object-2.2.8 vs test/connection_test.rb in sessionm-cassandra_object-2.2.10

- old
+ new

@@ -4,25 +4,25 @@ class TestObject < CassandraObject::Base end test 'establish_connection' do TestObject.establish_connection( - keyspace: 'place_directory_development', + keyspace: TEST_KEYSPACE, servers: '192.168.0.100:9160', thrift: {'timeout' => 10} ) assert_not_equal CassandraObject::Base.connection, TestObject.connection - assert_equal 'place_directory_development', TestObject.connection.keyspace + assert_equal TEST_KEYSPACE, TestObject.connection.keyspace assert_equal ["192.168.0.100:9160"], TestObject.connection.servers assert_equal 10, TestObject.connection.thrift_client_options[:timeout] end test 'establish_connection defaults' do TestObject.establish_connection( - keyspace: 'place_directory_development' + keyspace: TEST_KEYSPACE ) - assert_equal 'place_directory_development', TestObject.connection.keyspace + assert_equal TEST_KEYSPACE, TestObject.connection.keyspace assert_equal ["127.0.0.1:9160"], TestObject.connection.servers end -end \ No newline at end of file +end