Sha256: c6bb807385d50f7c3a15d2b37d12caed9e4ec2c7f03424d0f7f22edb5e9ce9b3

Contents?: true

Size: 646 Bytes

Versions: 13

Compression:

Stored size: 646 Bytes

Contents

require "spec_helper"

describe Chicago::ETL::TableBuilder do
  before :each do
    TEST_DB.drop_table(*(TEST_DB.tables))
  end

  it "should create an etl_batches table" do
    ETL::TableBuilder.build(TEST_DB)
    TEST_DB.tables.should include(:etl_batches)
  end

  it "should create an etl_task_invocations table" do
    ETL::TableBuilder.build(TEST_DB)
    TEST_DB.tables.should include(:etl_task_invocations)
  end

  it "should do nothing and not raise an error if run more times than necessary" do
    ETL::TableBuilder.build(TEST_DB)
    lambda { ETL::TableBuilder.build(TEST_DB) }.should_not raise_error(Sequel::DatabaseError)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
chicago-etl-0.2.2 spec/etl/table_builder_spec.rb
chicago-etl-0.2.1 spec/etl/table_builder_spec.rb
chicago-etl-0.2.0 spec/etl/table_builder_spec.rb
chicago-etl-0.1.4 spec/etl/table_builder_spec.rb
chicago-etl-0.1.3 spec/etl/table_builder_spec.rb
chicago-etl-0.1.2 spec/etl/table_builder_spec.rb
chicago-etl-0.1.1 spec/etl/table_builder_spec.rb
chicago-etl-0.1.0 spec/etl/table_builder_spec.rb
chicago-etl-0.0.13 spec/etl/table_builder_spec.rb
chicago-etl-0.0.12 spec/etl/table_builder_spec.rb
chicago-etl-0.0.11 spec/etl/table_builder_spec.rb
chicago-etl-0.0.10 spec/etl/table_builder_spec.rb
chicago-etl-0.0.9 spec/etl/table_builder_spec.rb