Commit aaac7dda authored by Fabio Pelosin's avatar Fabio Pelosin

[BridgeSupport] Run specs only if the executable is available.

parent 21e60f91
...@@ -168,7 +168,7 @@ module Pod ...@@ -168,7 +168,7 @@ module Pod
#--------------------------------------# #--------------------------------------#
if `which appledoc`.strip.empty? if `which appledoc`.strip.empty?
puts " ! ".red << "Skipping documentation generation specs, because appledoc can't be found." puts " ! ".red << "Skipping because the `appledoc` executable can't be found."
else else
it "generates documentation of all pods by default" do it "generates documentation of all pods by default" do
......
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../../../spec_helper', __FILE__)
describe "Pod::Generator::BridgeSupport" do describe "Pod::Generator::BridgeSupport" do
if `which gen_bridge_metadata`.strip.empty?
puts " ! ".red << "Skipping because the `gen_bridge_metadata` executable can't be found."
else
it "generates a metadata file with the appropriate search paths" do it "generates a metadata file with the appropriate search paths" do
headers = %w{ /some/dir/foo.h /some/dir/bar.h /some/other/dir/baz.h }.map { |h| Pathname.new(h) } headers = %w{ /some/dir/foo.h /some/dir/bar.h /some/other/dir/baz.h }.map { |h| Pathname.new(h) }
generator = Pod::Generator::BridgeSupport.new(headers) generator = Pod::Generator::BridgeSupport.new(headers)
...@@ -11,4 +15,5 @@ describe "Pod::Generator::BridgeSupport" do ...@@ -11,4 +15,5 @@ describe "Pod::Generator::BridgeSupport" do
generator.instance_variable_get(:@command).should == generator.instance_variable_get(:@command).should ==
%{-c "-I '/some/dir' -I '/some/other/dir'" -o '/path/to/Pods.bridgesupport' '#{headers.join("' '")}'} %{-c "-I '/some/dir' -I '/some/other/dir'" -o '/path/to/Pods.bridgesupport' '#{headers.join("' '")}'}
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