Sha256: 6c4c85f1fb93f248309f3d4b6876f97123e1aa7758b2eeff9c5514e83949720d

Contents?: true

Size: 752 Bytes

Versions: 2

Compression:

Stored size: 752 Bytes

Contents

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

# The CocoaPods namespace
#
module Pod
  describe Command::Plugins::List do
    extend SpecHelper::PluginsStubs

    before do
      UI.output = ''
      @command = Pod::Command::Plugins::List.new CLAide::ARGV.new []
    end

    it 'registers itself' do
      Command.parse(%w(plugins list))
      .should.be.instance_of Command::Plugins::List
    end

    #--- Output printing

    it 'prints out all plugins' do
      stub_plugins_json_request
      @command.run
      UI.output.should.include('github.com/CocoaPods/cocoapods-fake-1')
      UI.output.should.include('github.com/CocoaPods/cocoapods-fake-2')
      UI.output.should.include('github.com/chneukirchen/bacon')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-plugins-0.2.0 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.1.1 spec/command/plugins/list_spec.rb