Sha256: e8eac7431ebaa586d0915ac81692ae9cd7d0ca57535d3c3382815262f165394a

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

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

module Pod
  describe Command::Trunk::Me do
    describe "CLAide" do
      it "registers it self" do
        Command.parse(%w{ trunk me }).should.be.instance_of Command::Trunk::Me
      end
    end

    it "should error if we don't have a token" do
      Netrc.any_instance.stubs(:[]).returns(nil)
      command = Command.parse(%w{ trunk me })
      lambda { command.validate! }.should.raise CLAide::Help
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cocoapods-trunk-0.1.4 spec/command/trunk/me_spec.rb
cocoapods-trunk-0.1.3 spec/command/trunk/me_spec.rb
cocoapods-trunk-0.1.2 spec/command/trunk/me_spec.rb
cocoapods-trunk-0.1.1 spec/command/trunk/me_spec.rb
cocoapods-trunk-0.1.0 spec/command/trunk/me_spec.rb