Sha256: 51c1cbd174b8caf624dc19c5f514799e731dbb7fbc86bacd808d87b82cc42edf

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

# encoding: utf-8

describe "DROP TABLE" do

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

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

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

end # describe DROP TABLE

Version data entries

4 entries across 4 versions & 1 rubygems

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