Sha256: a19c4c2428c0bfb6fc2aeffef58659b9237f6e47ba1d285f80cf64e425984e30

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 KB

Contents

require 'pathname'
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$LOAD_PATH.unshift((ROOT + 'lib').to_s)
$LOAD_PATH.unshift((ROOT + 'spec').to_s)

require 'bundler/setup'
require 'bacon'
require 'mocha-on-bacon'
require 'pretty_bacon'
require 'pathname'
require 'cocoapods'

Mocha::Configuration.prevent(:stubbing_non_existent_method)

require 'cocoapods_plugin'

#-----------------------------------------------------------------------------#

module Pod
  # Disable the wrapping so the output is deterministic in the tests.
  #
  UI.disable_wrap = true

  # Redirects the messages to an internal store.
  #
  module UI
    @output = ''
    @warnings = ''

    class << self
      attr_accessor :output
      attr_accessor :warnings

      def puts(message = '')
        @output << "#{message}\n"
      end

      def warn(message = '', _actions = [])
        @warnings << "#{message}\n"
      end

      def print(message)
        @output << message
      end
    end
  end
end

#-----------------------------------------------------------------------------#

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
cocoapods-playgrounds-1.2.2 spec/spec_helper.rb
cocoapods-playgrounds-1.2.1 spec/spec_helper.rb
cocoapods-schoutedenapus-0.0.2 spec/spec_helper.rb
cocoapods-playgrounds-1.2.0 spec/spec_helper.rb
cocoapods-playgrounds-1.1.0 spec/spec_helper.rb
cocoapods-playgrounds-1.0.0 spec/spec_helper.rb
cocoapods-playgrounds-0.1.0 spec/spec_helper.rb
cocoapods-playgrounds-0.0.3 spec/spec_helper.rb
cocoapods-playgrounds-0.0.2 spec/spec_helper.rb
cocoapods-playgrounds-0.0.1 spec/spec_helper.rb
cocoapods-schoutedenapus-0.0.1 spec/spec_helper.rb