Sha256: 9cc5b56983662c396c064272ae4f495da4d44802e08e7bc1029633469375bb10

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

# encoding: utf-8

describe "DROP TYPE" do

  let(:type)      { QueryBuilder::CQL.keyspace(:wildlife).type(:species) }
  let(:statement) { type.drop }

  it_behaves_like :query_builder do
    subject   { statement }
    let(:cql) { "DROP TYPE wildlife.species;" }
  end

  it_behaves_like :query_builder do
    subject   { statement.if_exists.if_exists }
    let(:cql) { "DROP TYPE IF EXISTS wildlife.species;" }
  end

end # describe DROP TYPE

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
query_builder-0.0.4 spec/integration/drop_type_spec.rb
query_builder-0.0.3 spec/integration/drop_type_spec.rb
query_builder-0.0.2 spec/integration/drop_type_spec.rb
query_builder-0.0.1 spec/integration/drop_type_spec.rb