2011-01-04 16:54:01 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Apache::Rake::Support do
|
|
|
|
include Apache::Rake::Support
|
|
|
|
|
|
|
|
let(:source) { '/source' }
|
|
|
|
let(:destination) { '/destination/available' }
|
|
|
|
|
2011-01-04 21:58:16 +00:00
|
|
|
describe 'config_paths!' do
|
|
|
|
before {
|
|
|
|
@config = {
|
|
|
|
:source => 'cats',
|
2011-01-06 16:17:46 +00:00
|
|
|
:destination => 'dogs'
|
2011-01-04 21:58:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2011-09-27 19:30:38 +00:00
|
|
|
end
|