Added tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed ways fixture where most recent history != current.
This commit is contained in:
parent
a8eb3a6ada
commit
6339473cb7
7 changed files with 70 additions and 43 deletions
|
@ -51,6 +51,8 @@ class Way < ActiveRecord::Base
|
|||
if pt['timestamp']
|
||||
way.timestamp = Time.parse(pt['timestamp'])
|
||||
end
|
||||
# if visible isn't present then it defaults to true
|
||||
way.visible = (pt['visible'] or true)
|
||||
end
|
||||
|
||||
pt.find('tag').each do |tag|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue