Fixing some of the tests, adding the new tests to make sure that you can't edit when your not a public user
This commit is contained in:
parent
d97cfc35d6
commit
0dd0f1881d
8 changed files with 197 additions and 25 deletions
9
test/fixtures/changesets.yml
vendored
9
test/fixtures/changesets.yml
vendored
|
@ -14,7 +14,7 @@ normal_user_first_change:
|
|||
max_lat: <%= 5 * SCALE %>
|
||||
num_changes: 11
|
||||
|
||||
second_user_first_change:
|
||||
public_user_first_change:
|
||||
id: 2
|
||||
user_id: 2
|
||||
created_at: "2008-05-01 01:23:45"
|
||||
|
@ -28,6 +28,13 @@ normal_user_closed_change:
|
|||
closed_at: "2007-01-02 00:00:00"
|
||||
num_changes: 0
|
||||
|
||||
public_user_closed_change:
|
||||
id: 7
|
||||
user_id: 2
|
||||
created_at: "2007-01-01 00:00:00"
|
||||
closed_at: "2007-01-02 00:00:00"
|
||||
num_changes: 0
|
||||
|
||||
normal_user_version_change:
|
||||
id: 4
|
||||
user_id: 1
|
||||
|
|
6
test/fixtures/current_ways.yml
vendored
6
test/fixtures/current_ways.yml
vendored
|
@ -1,20 +1,20 @@
|
|||
visible_way:
|
||||
id: 1
|
||||
changeset_id: 1
|
||||
changeset_id: 2
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
visible: true
|
||||
version: 1
|
||||
|
||||
invisible_way:
|
||||
id: 2
|
||||
changeset_id: 1
|
||||
changeset_id: 2
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
visible: false
|
||||
version: 1
|
||||
|
||||
used_way:
|
||||
id: 3
|
||||
changeset_id: 1
|
||||
changeset_id: 2
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
visible: true
|
||||
version: 1
|
||||
|
|
2
test/fixtures/users.yml
vendored
2
test/fixtures/users.yml
vendored
|
@ -12,7 +12,7 @@ normal_user:
|
|||
home_lon: 12.1
|
||||
home_zoom: 3
|
||||
|
||||
second_user:
|
||||
public_user:
|
||||
id: 2
|
||||
email: test@example.com
|
||||
active: true
|
||||
|
|
6
test/fixtures/ways.yml
vendored
6
test/fixtures/ways.yml
vendored
|
@ -1,20 +1,20 @@
|
|||
visible_way:
|
||||
id: 1
|
||||
changeset_id: 1
|
||||
changeset_id: 2
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
visible: true
|
||||
version: 1
|
||||
|
||||
invisible_way:
|
||||
id: 2
|
||||
changeset_id: 1
|
||||
changeset_id: 2
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
visible: false
|
||||
version: 1
|
||||
|
||||
used_way:
|
||||
id: 3
|
||||
changeset_id: 1
|
||||
changeset_id: 2
|
||||
timestamp: 2007-01-01 00:00:00
|
||||
visible: true
|
||||
version: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue