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