```ruby
require File.dirname(__FILE__) + '/spec_helper'

describe Typedeploy::KitLoader do
  subject do
    @base_directory = File.join(File.dirname(__FILE__), "example")
    Typedeploy::Config.directory = @base_directory
    Typedeploy::KitLoader
  end

  it "can iterate over all existing kit configurations" do
    kits = {}
    subject.each { |k, n| kits[n] = k }
    kits["example"].to_params.should == {
      "name"=>"example",
      "domains"=>"localhost",
      "badge"=>true,
      "analytics"=>true
    }

    kits["example"].families.size.should == 1
    kits["example"].families.first.to_params.should =={
      "variations"=> "n4,i4,n7,i7",
      "subset"=>"all"
    }
  end
end
```

Make sure that Config.kits will work when no kits have been created.
user
```ruby
require File.dirname(__FILE__) + '/spec_helper'

describe Typedeploy::KitLoader do
  subject do
    @base_directory = File.join(File.dirname(__FILE__), "example")
    Typedeploy::Config.directory = @base_directory
    Typedeploy::KitLoader
  end

  it "can iterate over all existing kit configurations" do
    kits = {}
    subject.each { |k, n| kits[n] = k }
    kits["example"].to_params.should == {
      "name"=>"example",
      "domains"=>"localhost",
      "badge"=>true,
      "analytics"=>true
    }

    kits["example"].families.size.should == 1
    kits["example"].families.first.to_params.should =={
      "variations"=> "n4,i4,n7,i7",
      "subset"=>"all"
    }
  end

  context "no created kits" do
    before(:all) do
      Typedeploy::Config.directory = "/"
    end
    it "can still return .kits" do
      Typedeploy::Config.kits.should == {}
    end
  end
end
```
assistant