]> git.openstreetmap.org Git - rails.git/commitdiff
Explicitly require gpx in the trace model tests
authorTom Hughes <tom@compton.nu>
Wed, 14 Aug 2019 18:10:15 +0000 (19:10 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 14 Aug 2019 18:10:15 +0000 (19:10 +0100)
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.

test/models/trace_test.rb

index 77877287ba06f04cda9d15797fd6ee14e212f75e..42bfa6ddafaf7737c8152440ea1bc7092f3fe136 100644 (file)
@@ -1,4 +1,5 @@
 require "test_helper"
 require "test_helper"
+require "gpx"
 require "minitest/mock"
 
 class TraceTest < ActiveSupport::TestCase
 require "minitest/mock"
 
 class TraceTest < ActiveSupport::TestCase