Sha256: 517f5cb185a9d82d115fd378e1aa1c6eaacc248f5e129092308f0954a1b3b682

Contents?: true

Size: 555 Bytes

Versions: 22

Compression:

Stored size: 555 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

22 entries across 22 versions & 2 rubygems

Version Path
cocoapods-trunk-0.6.3 spec/command/trunk_spec.rb
cocoapods-trunk-0.6.2 spec/command/trunk_spec.rb