Sha256: 64e8d0f9af9496ca27c1d5814bafdb6e9270a2356b944a3375f585bcb07944b1
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 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, @spec, nil, nil) end it "includes proper compiler flags for iOS" do @builder.expects(:xcodebuild).with('GCC_PREPROCESSOR_DEFINITIONS=\'PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder\' -DBASE_FLAG -DIOS_FLAG ARCHS="x86_64 i386 arm64 armv7 armv7s"').returns(nil) @builder.compile(Platform.new(:ios)) end it "includes proper compiler flags for OSX" do @builder.expects(:xcodebuild).with("GCC_PREPROCESSOR_DEFINITIONS='PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder' -DBASE_FLAG -DOSX_FLAG").returns(nil) @builder.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, @spec, 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.compile(Platform.new(:ios)) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-packager-1.3.0 | spec/specification/builder_spec.rb |
cocoapods-packager-1.2.1 | spec/specification/builder_spec.rb |
cocoapods-packager-1.2.0 | spec/specification/builder_spec.rb |