require 'kit' describe Kit do MY_KIT_PATH = "kits/my_kit/" before :all do @kit = Kit.new MY_KIT_PATH end it "can create a new kit" do @kit.class.should == Kit end after :all do # Delete the sqlite3 database after running all tests config = YAML.load File.read MY_KIT_PATH + "config.yml" if config[:db_backend] == :sqlite3 config[:db_config].each do |key, p| dir = File.dirname p f = MY_KIT_PATH + p if dir == "." File.delete f end end end end