BigW Consortium Gitlab

rake_helper.rb 384 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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

    Rake.application.rake_require 'tasks/gitlab/task_helpers'
    Rake::Task.define_task :environment
  end

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