rearrange things
This commit is contained in:
parent
c81cec2833
commit
e7250a3ed1
@ -1,4 +1,3 @@
|
||||
require 'rubygems'
|
||||
require 'fileutils'
|
||||
require 'rainbow'
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
require 'spec_helper'
|
||||
require 'apache/apachify'
|
||||
|
||||
describe Apache::Apachify, "extends objects to apachify themselves" do
|
@ -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
|
@ -1,4 +1,5 @@
|
||||
require 'spec_helper'
|
||||
require 'apache/config'
|
||||
|
||||
describe Apache::Config, "logging directives" do
|
||||
let(:apache) { Apache::Config }
|
9
test/example_standalone.rb
Normal file
9
test/example_standalone.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user