X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0a86a1ea8db0867c34f7d9dff602ee3da6036bcd..98de681e4711ad3bf5526e511002c8f0e91860a8:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 7198519a7..f68c8e666 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,7 +2,7 @@ require "coveralls" Coveralls.wear!("rails") ENV["RAILS_ENV"] = "test" -require File.expand_path("../config/environment", __dir__) +require_relative "../config/environment" require "rails/test_help" require "webmock/minitest" @@ -130,7 +130,7 @@ module ActiveSupport end def stub_gravatar_request(email, status = 200, body = nil) - hash = Digest::MD5.hexdigest(email.downcase) + hash = ::Digest::MD5.hexdigest(email.downcase) url = "https://www.gravatar.com/avatar/#{hash}?d=404" stub_request(:get, url).and_return(:status => status, :body => body) end