puppet-swift/spec/classes/swift_proxy_copy_spec.rb

31 lines
666 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'swift::proxy::copy' do
let :facts do
{}
end
describe "when using default parameters" do
it 'should build the fragment with correct parameters' do
is_expected.to contain_concat_fragment('swift_copy').with_content('
[filter:copy]
use = egg:swift#copy
object_post_as_copy = true
')
end
end
describe "when overriding default parameters" do
let :params do
{
:object_post_as_copy => false,
}
end
it 'should build the fragment with correct parameters' do
is_expected.to contain_concat_fragment('swift_copy').with_content(/object_post_as_copy = false/)
end
end
end