test/unit/schema_test.rb in superstore-1.0.0 vs test/unit/schema_test.rb in superstore-1.0.2
- old
+ new
@@ -1,26 +1,22 @@
require 'test_helper'
class Superstore::SchemaTest < Superstore::TestCase
# SELECT columnfamily_name FROM System.schema_columnfamilies WHERE keyspace_name='myKeyspaceName';
- test "create_table" do
- Superstore::Schema.create_table 'TestRecords', 'compression_parameters:sstable_compression' => 'SnappyCompressor'
+ test "create and drop_table" do
+ Superstore::Schema.create_table 'TestRecords'
begin
Superstore::Schema.create_table 'TestRecords'
assert false, 'TestRecords should already exist'
rescue Exception => e
end
- end
- test "drop_table" do
- Superstore::Schema.create_table 'TestCFToDrop'
+ Superstore::Schema.drop_table 'TestRecords'
- Superstore::Schema.drop_table 'TestCFToDrop'
-
begin
- Superstore::Schema.drop_table 'TestCFToDrop'
- assert false, 'TestCFToDrop should not exist'
+ Superstore::Schema.drop_table 'TestRecords'
+ assert false, 'TestRecords should not exist'
rescue Exception => e
end
end
end