rearrange things

This commit is contained in:
John Bintz 2010-11-24 14:36:09 -05:00
parent c81cec2833
commit e7250a3ed1
12 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,3 @@
require 'rubygems'
require 'fileutils'
require 'rainbow'

View File

@ -1,3 +1,4 @@
require 'spec_helper'
require 'apache/apachify'
describe Apache::Apachify, "extends objects to apachify themselves" do

View File

@ -108,3 +108,11 @@ describe Apache::Config, "builds configurations" do
apache.to_a.should == [ '', '<LocationMatch "^/$">', ' MyTest', '</LocationMatch>', '' ]
end
end
describe "Apache::Config used separately" do
context "it works" do
subject { Apache::Config.build_and_return { this_works }.first }
it { should == "ThisWorks" }
end
end

View File

@ -1,4 +1,5 @@
require 'spec_helper'
require 'apache/config'
describe Apache::Config, "logging directives" do
let(:apache) { Apache::Config }

View File

@ -0,0 +1,9 @@
#!/usr/bin/ruby
require 'rubygems'
gem 'apache-config'
require 'apache/config'
puts Apache::Config.build_and_return do
this_works
end