Sha256: 4bf9595910e2c176160c0c0aacdfd87701629891f29e4fd48aad5e87db4d7b0e
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
require File.expand_path('../../spec_helper', __FILE__) module Pod describe Builder do describe 'Xcodebuild command' do describe 'compiler flags' do before do @spec = Specification.from_file('spec/fixtures/Builder.podspec') @builder = Builder.new(nil, nil, nil, nil, @spec, 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 = Builder.new(nil, nil, nil, nil, @spec, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-packager-1.4.0 | spec/specification/builder_spec.rb |