BigW Consortium Gitlab

rake_helper.rb 379 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
require 'spec_helper'
require 'rake'

RSpec.configure do |config|
  config.include RakeHelpers

  # Redirect stdout so specs don't have so much noise
  config.before(:all) do
    $stdout = StringIO.new

11
    Rake.application.rake_require 'tasks/gitlab/helpers'
12 13 14 15 16 17 18 19
    Rake::Task.define_task :environment
  end

  # Reset stdout
  config.after(:all) do
    $stdout = STDOUT
  end
end