Sha256: 50ef86e3f83232df1801fa17b2969b2c8cf1354e16c6d6d0d90f3c3264b3ec5f

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

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

module Pod
  describe Command::Trunk do
    describe 'CLAide' do
      it 'registers it self' do
        Command.parse(%w(        trunk        )).should.be.instance_of Command::Trunk
      end
    end

    before do
      @command = Command.parse(%w(trunk))
    end

    describe 'authorization' do
      it 'will use the trunk token from ENV if present' do
        ENV.stubs(:[]).with('COCOAPODS_TRUNK_TOKEN').returns('token')

        @command.send(:token).should == 'token'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-trunk-0.6.1 spec/command/trunk_spec.rb
cocoapods-trunk-0.6.0 spec/command/trunk_spec.rb