Commit 07857343 authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Add a more specifc unit test for configuration dependent resources

parent 74d0146a
......@@ -17,5 +17,16 @@ module Pod
generator_1.send(:script).should.not.include '--reference-external-strings-file'
generator_2.send(:script).should.include '--reference-external-strings-file'
end
it 'adds configuration dependent resources with a call wrapped in an if statement' do
resources = { 'Debug' => %w(Lookout.framework) }
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 'Lookout.framework'
fi
eos
end
end
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