Commit dc156249 authored by Seán Labastille's avatar Seán Labastille Committed by Samuel E. Giddins

Add spec for install_resource for resource bundles

parent 6998ed24
......@@ -24,7 +24,18 @@ module Pod
script = generator.send(:script)
script.should.include <<-eos.strip_heredoc
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_resource 'Lookout.framework'
install_resource "Lookout.framework"
fi
eos
end
it 'adds resource bundles with a call wrapped in an if statement' do
resources = { 'Debug' => %w(${BUILT_PRODUCTS_DIR}/Resources.bundle) }
generator = Pod::Generator::CopyResourcesScript.new(resources, Platform.new(:ios, '6.0'))
script = generator.send(:script)
script.should.include <<-eos.strip_heredoc
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_resource "${BUILT_PRODUCTS_DIR}/Resources.bundle"
fi
eos
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment