Sha256: 7dde48ae3c0112376ef4a506e03c7558ecba77f7499c18a03e06abc62d2d6342

Contents?: true

Size: 1.04 KB

Versions: 14

Compression:

Stored size: 1.04 KB

Contents

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

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

Mocha.configure { |c| c.stubbing_non_existent_method = :prevent }

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

14 entries across 14 versions & 2 rubygems

Version Path
cocoapods-whitelist-0.5.5 spec/spec_helper.rb
cocoapods-whitelist-0.5.4 spec/spec_helper.rb
cocoapods-whitelist-0.5.3 spec/spec_helper.rb
cocoapods-whitelist-0.4.0 spec/spec_helper.rb
cocoapods-whitelist-0.3.0 spec/spec_helper.rb
cocoapods-embed-flutter-0.6.1 spec/spec_helper.rb
cocoapods-embed-flutter-0.6.0 spec/spec_helper.rb
cocoapods-embed-flutter-0.5.3 spec/spec_helper.rb
cocoapods-embed-flutter-0.5.2 spec/spec_helper.rb
cocoapods-embed-flutter-0.5.1 spec/spec_helper.rb
cocoapods-embed-flutter-0.5.0 spec/spec_helper.rb
cocoapods-whitelist-0.2.1 spec/spec_helper.rb
cocoapods-whitelist-0.2.0 spec/spec_helper.rb
cocoapods-whitelist-0.1.0 spec/spec_helper.rb