Sha256: 1ef6ce5f82109b82ee17ca9ecc032d38d9e098eb1f6b4d2117b1f951ff905060

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

require 'pathname'

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

RSpec.configure do |config|
  # Use color in STDOUT
  config.color = true
end

require 'danger'
require 'cork'
require 'danger_plugin'

def testing_ui
  Cork::Board.new(silent: true)
end

def testing_env
  {
    'HAS_JOSH_K_SEAL_OF_APPROVAL' => 'true',
    'TRAVIS_PULL_REQUEST' => '1',
    'TRAVIS_REPO_SLUG' => 'test'
  }
end

def testing_dangerfile
  env = Danger::EnvironmentManager.new(testing_env)
  Danger::Dangerfile.new(env, testing_ui)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danger-mention-0.2 spec/spec_helper.rb