[openstreetmap/openstreetmap-website] More factory refactoring (#1544)
Andy Allan
notifications at github.com
Wed May 17 15:06:04 UTC 2017
gravitystorm commented on this pull request.
> @@ -10,11 +10,16 @@ def test_db_count
end
def test_bbox
- node = current_nodes(:used_node_1)
- [:visible_way,
- :invisible_way,
- :used_way].each do |way_symbol|
- way = current_ways(way_symbol)
+ node = create(:node)
+ visible_way = create(:way)
+ create(:way_node, :way => visible_way, :node => node)
+ invisible_way = create(:way)
Good catch!
--
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/1544#discussion_r117028083
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170517/2195f9b1/attachment.html>
More information about the rails-dev
mailing list