diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..dd9563d
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,7 @@
+gem 'rainbow'
+
+group :test do
+	gem 'rspec'
+	gem 'autotest'
+	gem 'mocha'
+end
diff --git a/autotest/discover.rb b/autotest/discover.rb
new file mode 100644
index 0000000..cd6892c
--- /dev/null
+++ b/autotest/discover.rb
@@ -0,0 +1 @@
+Autotest.add_discovery { "rspec2" }
diff --git a/lib/apache/config.rb b/lib/apache/config.rb
index 136f0fb..8b406ce 100644
--- a/lib/apache/config.rb
+++ b/lib/apache/config.rb
@@ -1,6 +1,9 @@
 require 'rubygems'
+require 'bundler'
+
+Bundler.require(:default)
+
 require 'fileutils'
-require 'rainbow'
 
 Dir[File.join(File.dirname(__FILE__), '*.rb')].each { |f| require f }