Sha256: 7f74c4a400c5a884506884cc8ab23d8fb932c16cbd0d135856d2aeec38f0581b

Contents?: true

Size: 754 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 2 rubygems

Version Path
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/cocoapods-plugins-1.0.0/spec/command/plugins/list_spec.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/cocoapods-plugins-1.0.0/spec/command/plugins/list_spec.rb
cocoapods-plugins-1.0.0 spec/command/plugins/list_spec.rb
cocoapods-plugins-1.0.0.rc.1 spec/command/plugins/list_spec.rb
cocoapods-plugins-1.0.0.beta.1 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.4.2 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.4.1 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.4.0 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.3.2 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.3.1 spec/command/plugins/list_spec.rb
cocoapods-plugins-0.3.0 spec/command/plugins/list_spec.rb