Sha256: fb5b5253ef1aee7ee8732e0634a6cfe42ab218d2b934b460b3df3b08b599025b
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
require File.expand_path('../../../spec_helper', __FILE__) require 'tmpdir' module Pod describe Command::Trunk::Deprecate do describe 'CLAide' do it 'registers it self' do Command.parse(%w( trunk deprecate )).should.be.instance_of Command::Trunk::Deprecate end end it 'should error without a pod name' do command = Command.parse(%w( trunk deprecate )) lambda { command.validate! }.should.raise CLAide::Help end it 'should show information for a pod' do response = { 'messages' => [ { '2015-12-05 02:00:25 UTC' => 'Push for `Stencil 0.96.3` initiated.', }, { '2015-12-05 02:00:26 UTC' => 'Push for `Stencil 0.96.3` has been pushed (1.02409270 s).', }, ], 'data_url' => 'https://raw.githubusercontent.com/CocoaPods/Specs/ce4efe9f986d297008e8c61010a4b0d5881c50d0/Specs/Stencil/0.96.3/Stencil.podspec.json', } Command::Trunk::Deprecate.any_instance.expects(:deprecate).returns(response) Command::Trunk::Deprecate.invoke(%w(Stencil)) UI.output.should.include 'Data URL: https://raw.githubusercontent' UI.output.should.include 'Push for `Stencil 0.96.3` initiated' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-trunk-1.0.0.beta.1 | spec/command/trunk/deprecate_spec.rb |