apache-config-generator/spec/apache/rake/support_spec.rb

23 lines
513 B
Ruby
Raw Normal View History

2011-01-04 16:54:01 +00:00
require 'spec_helper'
require 'apache/rake/support'
describe Apache::Rake::Support do
include Apache::Rake::Support
let(:source) { '/source' }
let(:destination) { '/destination/available' }
describe 'config_paths!' do
before {
@config = {
:source => 'cats',
:destination => 'dogs'
}
}
subject { config_paths!; @config }
its([:source_path]) { should == File.expand_path('cats') }
its([:destination_path]) { should == File.expand_path('dogs') }
2011-01-04 16:54:01 +00:00
end
end