<p>This avoids the need to stub trace methods during tests by instead treating the example trace files as fixtures and linking them into place when required.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/1426'>https://github.com/openstreetmap/openstreetmap-website/pull/1426</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Link GPX fixture files instead of stubbing</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-0">Gemfile</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-1">Gemfile.lock</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-2">app/models/trace.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-3">test/controllers/trace_controller_test.rb</a>
    (547)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-4">test/controllers/user_controller_test.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-5">test/factories/traces.rb</a>
    (15)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-6">test/gpx/fixtures/a.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-7">test/gpx/fixtures/a.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-8">test/gpx/fixtures/a_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-9">test/gpx/fixtures/b.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-10">test/gpx/fixtures/b.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-11">test/gpx/fixtures/b_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-12">test/gpx/fixtures/c.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-13">test/gpx/fixtures/c.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-14">test/gpx/fixtures/c_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-15">test/gpx/fixtures/d.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-16">test/gpx/fixtures/d.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-17">test/gpx/fixtures/d_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-18">test/gpx/fixtures/f.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-19">test/gpx/fixtures/f.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-20">test/gpx/fixtures/f_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-21">test/gpx/fixtures/g.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-22">test/gpx/fixtures/g.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-23">test/gpx/fixtures/g_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-24">test/gpx/fixtures/h.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-25">test/gpx/fixtures/h.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-26">test/gpx/fixtures/h_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-27">test/gpx/fixtures/i.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-28">test/gpx/fixtures/i.gpx</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-29">test/gpx/fixtures/i_icon.gif</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-30">test/gpx/fixtures/j.gpx</a>
    (0)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-31">test/gpx/images/.gitkeep</a>
    (0)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-32">test/gpx/traces/.gitkeep</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426/files#diff-33">test/models/trace_test.rb</a>
    (32)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1426.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/1426.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1426.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/1426.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1426">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLWqYucEBxFuzXw_Z6SfQg-IiWkZfks5rZgmugaJpZM4L3kFq">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLYs-KqJ16jKtA-rstyjRQ0sjCbStks5rZgmugaJpZM4L3kFq.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/pull/1426"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Link GPX fixture files instead of stubbing (#1426)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/1426"}}}</script>