Sha256: f4bcca9d7ac35b96a75581a7fc742c8395412a3ff8e3cd195cd937fa5c8abbb0

Contents?: true

Size: 834 Bytes

Versions: 1

Compression:

Stored size: 834 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

module Pod
  describe Command::Spec::Package do
  	describe 'Subspecs' do
  	  after do
  	  	Dir.glob("KFData-*").each { |dir| Pathname.new(dir).rmtree }
      end

      it 'can package a single subspec' do
      	SourcesManager.stubs(:search).returns(nil)

        command = Command.parse(%w{ package spec/fixtures/KFData.podspec --subspecs=Core})
        command.run

        true.should == true  # To make the test pass without any shoulds
      end

      it 'can package a list of subspecs' do
      	SourcesManager.stubs(:search).returns(nil)

        command = Command.parse(%w{ package spec/fixtures/KFData.podspec --subspecs=Core,Compatibility})
        command.run

        true.should == true  # To make the test pass without any shoulds
      end
  	end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocoapods-packager-1.0.0 spec/command/subspecs_spec.rb