Sha256: 90763ef536f6fc220fa89416fdeb23ff92b0f9dbbb37fb7297565c9d9accb150

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

require 'devinstall/settings'

def clean_config
  Devinstall::Settings::FILES.clear
  Devinstall::Settings::SETTINGS.clear
  Devinstall::Settings::PROVIDERS.clear
end

def capture_output
  old_output=$stdout
  $stdout   =StringIO.new
  yield
  res    =$stdout.string
  $stdout=old_output
  res
end

RSpec.configure do |c|
  c.before(:all) do
    @config=Devinstall::Settings.instance
    clean_config
    @package, @type, @env, @action = :devinstall, :deb, nil, :install
    $verbose                       =true
  end
end

Dir[File.expand_path('../support/**/*_spec.rb', __FILE__)].sort.each { |f| require f }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devinstall-1.2.2 spec/spec_helper.rb