Sha256: 9b74ccf1b6621d695393fabe8f54448b64f32ce66be6a26b6250544896f43a12

Contents?: true

Size: 1.36 KB

Versions: 17

Compression:

Stored size: 1.36 KB

Contents

# Set up coverage analysis
#-----------------------------------------------------------------------------#

if RUBY_VERSION >= '1.9.3'
  require 'codeclimate-test-reporter'
  CodeClimate::TestReporter.configure do |config|
    config.logger.level = Logger::WARN
  end
  CodeClimate::TestReporter.start
end

# Set up
#-----------------------------------------------------------------------------#

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

ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$LOAD_PATH.unshift((ROOT + 'lib').to_s)
$LOAD_PATH.unshift((ROOT + 'spec').to_s)
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

17 entries across 17 versions & 2 rubygems

Version Path
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/cocoapods-try-1.1.0/spec/spec_helper.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/cocoapods-try-1.1.0/spec/spec_helper.rb
cocoapods-try-1.1.0 spec/spec_helper.rb
cocoapods-try-1.0.0 spec/spec_helper.rb
cocoapods-try-1.0.0.rc.1 spec/spec_helper.rb
cocoapods-try-1.0.0.beta.4 spec/spec_helper.rb
cocoapods-try-1.0.0.beta.3 spec/spec_helper.rb
cocoapods-try-1.0.0.beta.2 spec/spec_helper.rb
cocoapods-try-1.0.0.beta.1 spec/spec_helper.rb
cocoapods-try-0.5.1 spec/spec_helper.rb
cocoapods-try-0.5.0 spec/spec_helper.rb
cocoapods-try-0.4.5 spec/spec_helper.rb
cocoapods-try-0.4.4 spec/spec_helper.rb
cocoapods-try-0.4.3 spec/spec_helper.rb
cocoapods-try-0.4.2 spec/spec_helper.rb
cocoapods-try-0.4.1 spec/spec_helper.rb
cocoapods-try-0.4.0 spec/spec_helper.rb