Sha256: 2b99fb1a4d28863829c551865bb42b6327e2f770a0c99d54da091ac5c092bf1f
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
require File.expand_path('../../spec_helper', __FILE__) module Pod describe 'Packager' do after do Dir.glob("CPDColors-*").each { |dir| Pathname.new(dir).rmtree } Dir.glob("layer-client-messaging-schema-*").each { |dir| Pathname.new(dir).rmtree } Dir.glob("OpenSans-*").each { |dir| Pathname.new(dir).rmtree } end it 'presents the help if a directory is provided' do should.raise CLAide::Help do command = Command.parse(%w{ package spec }) end.message.should.match /is a directory/ end it 'presents the help if a random file is provided instead of a specification' do should.raise CLAide::Help do command = Command.parse(%w{ package README.md }) end.message.should.match /is not a podspec/ end it 'presents the help if a podspec with binary-only dependencies is used' do command = Command.parse(%w{ package spec/fixtures/CPDColors.podspec }) should.raise CLAide::Help do command.validate! end.message.should.match /binary-only/ end it 'can package a podspec with only resources' do command = Command.parse(%w{ package spec/fixtures/layer-client-messaging-schema.podspec --no-mangle }) command.run true.should == true # To make the test pass without any shoulds end it 'can package a podspec with binary-only dependencies if --no-mangle is specified' do command = Command.parse(%w{ package spec/fixtures/CPDColors.podspec --no-mangle }) command.run true.should == true # To make the test pass without any shoulds end it 'can package a podspec with resource bundles' do command = Command.parse(%w{ package spec/fixtures/OpenSans.podspec }) command.run bundles = Dir.glob('OpenSans-*/ios/OpenSans.framework/Versions/A/Resources/*.bundle') bundles.count.should == 1 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-packager-1.1.0 | spec/command/error_spec.rb |
cocoapods-packager-1.0.2 | spec/command/error_spec.rb |
cocoapods-packager-1.0.1 | spec/command/error_spec.rb |