Commit eab14a83 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[EmbedFrameworksScript] Double quote framework name

parent 56444414
...@@ -123,7 +123,7 @@ module Pod ...@@ -123,7 +123,7 @@ module Pod
unless frameworks.empty? unless frameworks.empty?
script << %(if [[ "$CONFIGURATION" == "#{config}" ]]; then\n) script << %(if [[ "$CONFIGURATION" == "#{config}" ]]; then\n)
frameworks.each do |framework| frameworks.each do |framework|
script << " install_framework '#{framework}'\n" script << %( install_framework "#{framework}"\n)
end end
script << "fi\n" script << "fi\n"
end end
......
...@@ -8,17 +8,17 @@ module Pod ...@@ -8,17 +8,17 @@ module Pod
'Release' => %w(CrashlyticsFramework.framework), 'Release' => %w(CrashlyticsFramework.framework),
} }
generator = Pod::Generator::EmbedFrameworksScript.new(frameworks) generator = Pod::Generator::EmbedFrameworksScript.new(frameworks)
generator.send(:script).should.include <<-eos.strip_heredoc generator.send(:script).should.include <<-SH.strip_heredoc
if [[ "$CONFIGURATION" == "Debug" ]]; then if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework 'Pods/Loopback.framework' install_framework "Pods/Loopback.framework"
install_framework 'Reveal.framework' install_framework "Reveal.framework"
fi fi
eos SH
generator.send(:script).should.include <<-eos.strip_heredoc generator.send(:script).should.include <<-SH.strip_heredoc
if [[ "$CONFIGURATION" == "Release" ]]; then if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework 'CrashlyticsFramework.framework' install_framework "CrashlyticsFramework.framework"
fi fi
eos SH
end end
end 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