From: Tom Hughes Date: Wed, 14 Aug 2019 18:10:15 +0000 (+0100) Subject: Explicitly require gpx in the trace model tests X-Git-Tag: live~2462 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/18f5f1d499178bfbeaceb450a4a8e0a2863b3d96?hp=389fee0151d4b7f3b4a77e38143e6990a00d2362 Explicitly require gpx in the trace model tests If we don't do this and no other test manages to trigger an autoload before we run then we might try and autoload it inside a MockFS block which will fail. --- diff --git a/test/models/trace_test.rb b/test/models/trace_test.rb index 77877287b..42bfa6dda 100644 --- a/test/models/trace_test.rb +++ b/test/models/trace_test.rb @@ -1,4 +1,5 @@ require "test_helper" +require "gpx" require "minitest/mock" class TraceTest < ActiveSupport::TestCase