You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: worker_spec.rb
    path of file: ./repos/squasher/spec/lib
    
    the code of the file until where you have to start completion: require 'spec_helper'
require 'tempfile'

describe Squasher::Worker do
  context 'failed on #check!' do
    let(:worker) { described_class.new(Time.new(2012, 6, 20)) }

    specify 'command was run not in application root' do
      allow_any_instance_of(Squasher::Config).to receive(:migrations_folder?).and_return(false)

      expect_exit_with(:migration_folder_missing)
    end

    specify 'db configuration is invalid' do
      allow_any_instance_of(Squasher::Config).to receive(:dbconfig?).and_return(false)

      expect_exit_with(:dbconfig_invalid)
    
  def up
    execute %q{
    CREATE TABLE cities (
      id integer NOT NULL,
      name character varying,
      created_at timestamp without time zone NOT NULL,
      updated_at timestamp without time zone NOT NULL,
    );
    CREATE TABLE managers (
      id integer NOT NULL,
      email character varying,
      password_digest character varying,
      created_at timestamp without time zone NOT NULL,
      updated_at timestamp without time zone NOT NULL,
      CONSTRAINT email_format CHECK (email ~* '^.+@.+\..+')
    );
    CREATE TABLE offices (
      id integer NOT NULL,
      name character varying,
      address character varying,
      phone character varying,
      description text,
      capacity integer,
      manager_id integer,
      city_id integer,
      created_at timestamp without time zone NOT NULL,
      updated_at timestamp without time zone NOT NULL
    );
    }
  end