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