Sha256: c40d1e7f2cf9d7cb6a577025f2c19975519bab1da8230ea74cb145d2785a5f1c

Contents?: true

Size: 484 Bytes

Versions: 4

Compression:

Stored size: 484 Bytes

Contents

# encoding: utf-8

describe "DROP INDEX" do

  let(:index) do
    QueryBuilder::CQL.keyspace(:wildlife).table(:species).index(:priority_index)
  end

  let(:statement) { index.drop }

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

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

end # describe DROP INDEX

Version data entries

4 entries across 4 versions & 1 rubygems

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