Rename all ID columns that aren't unique
Having a table with a column called ID that is only part of the primary key really doesn't work as rails likes to treat ID as a special name so it becomes impossible to assign to it or read it.
This commit is contained in:
parent
b63ce5d460
commit
fc25c3d412
55 changed files with 346 additions and 356 deletions
|
@ -10,13 +10,13 @@ class OldWayControllerTest < ActionController::TestCase
|
|||
|
||||
def test_history_visible
|
||||
# check that a visible way is returned properly
|
||||
get :history, :id => ways(:visible_way).id
|
||||
get :history, :id => ways(:visible_way).way_id
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_history_invisible
|
||||
# check that an invisible way's history is returned properly
|
||||
get :history, :id => ways(:invisible_way).id
|
||||
get :history, :id => ways(:invisible_way).way_id
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue