debian-mirror-gitlab/derailed-benchmarks/test/rails_app/perf.rake
2019-10-03 14:02:42 +05:30

10 lines
298 B
Ruby

# frozen_string_literal: true
$LOAD_PATH << File.expand_path("../../../lib", __FILE__)
require 'derailed_benchmarks'
require 'derailed_benchmarks/tasks'
if ENV['AUTH_CUSTOM_USER']
DerailedBenchmarks.auth.user = -> { User.first_or_create!(email: "user@example.com", password: 'password') }
end