Sha256: 63392072fa964362f9439d1b6f3ab52f00cce0d4d9562e3e66cda7033a6e37ef

Contents?: true

Size: 618 Bytes

Versions: 17

Compression:

Stored size: 618 Bytes

Contents

require 'test_helper'

class Superstore::SchemaTest < Superstore::TestCase
  # SELECT columnfamily_name FROM System.schema_columnfamilies WHERE keyspace_name='myKeyspaceName';
  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

    Superstore::Schema.drop_table 'TestRecords'

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

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
superstore-1.2.0 test/unit/schema_test.rb
superstore-1.1.4 test/unit/schema_test.rb
superstore-1.1.3 test/unit/schema_test.rb
superstore-1.1.2 test/unit/schema_test.rb
superstore-1.1.1 test/unit/schema_test.rb
superstore-1.1.0 test/unit/schema_test.rb
superstore-1.0.12 test/unit/schema_test.rb
superstore-1.0.11 test/unit/schema_test.rb
superstore-1.0.10 test/unit/schema_test.rb
superstore-1.0.9 test/unit/schema_test.rb
superstore-1.0.8 test/unit/schema_test.rb
superstore-1.0.7 test/unit/schema_test.rb
superstore-1.0.6 test/unit/schema_test.rb
superstore-1.0.5 test/unit/schema_test.rb
superstore-1.0.4 test/unit/schema_test.rb
superstore-1.0.3 test/unit/schema_test.rb
superstore-1.0.2 test/unit/schema_test.rb