Sha256: 51c93dfb0fe065bc08b9d7488c27d1baba06db0a873abb80abcaf3972ef957ae

Contents?: true

Size: 868 Bytes

Versions: 5

Compression:

Stored size: 868 Bytes

Contents

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

module Pod
  describe Command::Spec::Package do
    describe 'IntegrationTests' do
      after do
        Dir.glob("NikeKit-*").each { |dir| Pathname.new(dir).rmtree }
        Pathname.new('spec/fixtures/PackagerTest/NikeKit.framework').rmtree
      end

  	 it 'Allow integration into project alongside CocoaPods' do
        SourcesManager.stubs(:search).returns(nil)

        command = Command.parse(%w{ package spec/fixtures/NikeKit.podspec })
        command.run
        `cp -Rp NikeKit-*/ios/NikeKit.framework spec/fixtures/PackagerTest`

        Dir.chdir('spec/fixtures/PackagerTest') do
          `pod install`
          `xcodebuild -workspace PackagerTest.xcworkspace -scheme PackagerTest`
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cocoapods-packager-1.1.0 spec/integration/project_spec.rb
cocoapods-packager-1.0.2 spec/integration/project_spec.rb
cocoapods-packager-1.0.1 spec/integration/project_spec.rb
cocoapods-packager-1.0.0 spec/integration/project_spec.rb
cocoapods-packager-0.9.0 spec/integration/project_spec.rb