Sha256: 3207b414ca664983dee951cac500c9e3c12d82b6af7e5ba7a5c5dedf39870396

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

# encoding: utf-8

describe "ALTER TABLE ... ADD" do

  let(:column) do
    QueryBuilder::CQL.keyspace(:wildlife).table(:species).column(:weight)
  end

  it_behaves_like :query_builder do
    subject { column.create(:int) }

    let(:cql) { "ALTER TABLE wildlife.species ADD weight int;" }
  end

  it_behaves_like :query_builder do
    subject { column.create(:int, static: true) }

    let(:cql) { "ALTER TABLE wildlife.species ADD weight int STATIC;" }
  end

end # describe ALTER TABLE ... ADD

Version data entries

4 entries across 4 versions & 1 rubygems

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