gitlab-org--gitlab-foss/lib/gitlab/seeder.rb
Robert Speicher d0622b79d8 Better categorize test coverage results
Also marks a few things as uncovered, and removes an unused class.
2017-08-11 10:59:11 -04:00

25 lines
355 B
Ruby

# :nocov:
module DeliverNever
def deliver_later
self
end
end
module Gitlab
class Seeder
def self.quiet
mute_mailer
SeedFu.quiet = true
yield
SeedFu.quiet = false
puts "\nOK".color(:green)
end
def self.mute_mailer
ActionMailer::MessageDelivery.prepend(DeliverNever)
end
end
end
# :nocov: