Sha256: 47c59000b7fafc5d73384a63065eac558f9b6c0a2604cd0f7fb32b13d5f3942b

Contents?: true

Size: 761 Bytes

Versions: 1

Compression:

Stored size: 761 Bytes

Contents

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'

    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 'TestCFToDrop'

    begin
      Superstore::Schema.drop_table 'TestCFToDrop'
      assert false, 'TestCFToDrop should not exist'
    rescue Exception => e
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
superstore-1.0.0 test/unit/schema_test.rb