Sha256: cec4f22b19af24077eaee157f537153f3798a336da987d22994ec3b426ec1a29
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
require File.expand_path('../../spec_helper', __FILE__) module Pod describe PangleBuilder do describe 'Xcodebuild command' do describe 'compiler flags' do before do @spec = Specification.from_file('spec/fixtures/Builder.podspec') @builder = PangleBuilder.new(nil, nil, nil, nil, @spec, nil, nil, nil, nil, nil, nil, nil, nil) end it "includes proper compiler flags for iOS" do @builder.expects(:xcodebuild).with("GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder' -DBASE_FLAG -DIOS_FLAG", "ARCHS='x86_64 i386 arm64 armv7 armv7s' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments'").returns(nil) @builder.send(:compile, Platform.new(:ios)) end it "includes proper compiler flags for OSX" do @builder.expects(:xcodebuild).with("GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder' -DBASE_FLAG -DOSX_FLAG", nil).returns(nil) @builder.send(:compile, Platform.new(:osx)) end end describe 'on build failure' do before do @spec = Specification.from_file('spec/fixtures/Builder.podspec') @builder = PangleBuilder.new(nil, nil, nil, nil, @spec, nil, nil, nil, nil, nil, nil, nil, nil) end it 'dumps report and terminates' do UI::BuildFailedReport.expects(:report).returns(nil) should.raise SystemExit do # TODO: check that it dumps report @builder.send(:compile, Platform.new(:ios)) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-panglePackager-1.5.0.2 | spec/specification/builder_spec.rb |
cocoapods-panglePackager-1.5.0.1 | spec/specification/builder_spec.rb |