[openstreetmap/openstreetmap-website] Link GPX fixture files instead of stubbing (#1426)
Tom Hughes
notifications at github.com
Sun Feb 5 17:41:02 UTC 2017
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.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/1426
-- Commit Summary --
* Link GPX fixture files instead of stubbing
-- File Changes --
M Gemfile (1)
M Gemfile.lock (2)
M app/models/trace.rb (6)
M test/controllers/trace_controller_test.rb (547)
M test/controllers/user_controller_test.rb (2)
M test/factories/traces.rb (15)
R test/gpx/fixtures/a.gif (0)
R test/gpx/fixtures/a.gpx (0)
R test/gpx/fixtures/a_icon.gif (0)
R test/gpx/fixtures/b.gif (0)
R test/gpx/fixtures/b.gpx (0)
R test/gpx/fixtures/b_icon.gif (0)
R test/gpx/fixtures/c.gif (0)
R test/gpx/fixtures/c.gpx (0)
R test/gpx/fixtures/c_icon.gif (0)
R test/gpx/fixtures/d.gif (0)
R test/gpx/fixtures/d.gpx (0)
R test/gpx/fixtures/d_icon.gif (0)
R test/gpx/fixtures/f.gif (0)
R test/gpx/fixtures/f.gpx (0)
R test/gpx/fixtures/f_icon.gif (0)
R test/gpx/fixtures/g.gif (0)
R test/gpx/fixtures/g.gpx (0)
R test/gpx/fixtures/g_icon.gif (0)
R test/gpx/fixtures/h.gif (0)
R test/gpx/fixtures/h.gpx (0)
R test/gpx/fixtures/h_icon.gif (0)
R test/gpx/fixtures/i.gif (0)
R test/gpx/fixtures/i.gpx (0)
R test/gpx/fixtures/i_icon.gif (0)
R test/gpx/fixtures/j.gpx (0)
A test/gpx/images/.gitkeep (0)
A test/gpx/traces/.gitkeep (0)
M test/models/trace_test.rb (32)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/1426.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1426.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170205/c8a7a7bb/attachment.html>
More information about the rails-dev
mailing list