Update tests for change in name from "map_bug" to "note" etc

This commit is contained in:
Tom Hughes 2011-05-22 12:40:56 +01:00
parent ab2acea49b
commit 08d6a0c910
3 changed files with 61 additions and 74 deletions

View file

@ -1,113 +1,106 @@
t1:
id: 1
bug_id: 1
note_id: 1
visible: true
created_at: 2007-01-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'This is the initial description of the bug 1'
body: 'This is the initial description of the note 1'
t2:
id: 2
bug_id: 2
note_id: 2
visible: true
created_at: 2007-01-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'This is the initial description of the bug 2'
body: 'This is the initial description of the note 2'
t3:
id: 3
bug_id: 2
note_id: 2
visible: true
created_at: 2007-02-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'This is an additional comment for bug 2'
body: 'This is an additional comment for note 2'
t4:
id: 4
bug_id: 3
note_id: 3
visible: true
created_at: 2007-01-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'This is the initial comment for bug 3'
body: 'This is the initial comment for note 3'
t5:
id: 5
bug_id: 4
note_id: 4
visible: true
created_at: 2007-01-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'Spam for bug 4'
body: 'Spam for note 4'
t6:
id: 6
bug_id: 5
note_id: 5
visible: true
created_at: 2007-01-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'Valid comment for bug 5'
body: 'Valid comment for note 5'
t7:
id: 7
bug_id: 5
note_id: 5
visible: false
created_at: 2007-02-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'Spam for bug 5'
body: 'Spam for note 5'
t8:
id: 8
bug_id: 5
note_id: 5
visible: true
created_at: 2007-02-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'Another valid comment for bug 5'
body: 'Another valid comment for note 5'
t9:
id: 9
bug_id: 6
note_id: 6
visible: true
created_at: 2007-01-01 00:00:00
event: opened
author_id: 1
body: 'This is a bug with from a logged-in user'
body: 'This is a note with from a logged-in user'
t10:
id: 10
bug_id: 6
note_id: 6
visible: true
created_at: 2007-02-01 00:00:00
event: commented
author_id: 4
body: 'A comment from another logged-in user'
t11:
id: 11
bug_id: 7
note_id: 7
visible: true
event: opened
created_at: 2007-01-01 00:00:00
author_name: 'testname'
author_ip: '192.168.1.1'
body: 'Initial bug description'
body: 'Initial note description'
t12:
id: 12
bug_id: 7
note_id: 7
visible: true
event: commented
created_at: 2007-02-01 00:00:00
@ -117,12 +110,8 @@ t12:
t13:
id: 13
bug_id: 7
note_id: 7
visible: true
event: closed
created_at: 2007-03-01 00:00:00
author_id: 4

View file

@ -1,7 +1,7 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
<% SCALE = 10000000 unless defined?(SCALE) %>
open_bug:
open_note:
id: 1
latitude: <%= 1*SCALE %>
longitude: <%= 1*SCALE %>
@ -10,7 +10,7 @@ open_bug:
created_at: 2007-01-01 00:00:00
updated_at: 2007-01-01 00:00:00
open_bug_with_comment:
open_note_with_comment:
id: 2
latitude: <%= 1.1*SCALE %>
longitude: <%= 1.1*SCALE %>
@ -19,7 +19,7 @@ open_bug_with_comment:
created_at: 2007-01-01 00:00:00
updated_at: 2007-02-01 00:00:00
closed_bug_with_comment:
closed_note_with_comment:
id: 3
latitude: <%= 1.2*SCALE %>
longitude: <%= 1.2*SCALE %>
@ -29,7 +29,7 @@ closed_bug_with_comment:
updated_at: 2007-03-01 00:00:00
closed_at: 2007-03-01 00:00:00
hidden_bug_with_comment:
hidden_note_with_comment:
id: 4
latitude: <%= 1.3*SCALE %>
longitude: <%= 1.3*SCALE %>
@ -38,7 +38,7 @@ hidden_bug_with_comment:
created_at: 2007-01-01 00:00:00
updated_at: 2007-03-01 00:00:00
bug_with_hidden_comment:
note_with_hidden_comment:
id: 5
latitude: <%= 1.4*SCALE %>
longitude: <%= 1.4*SCALE %>
@ -47,7 +47,7 @@ bug_with_hidden_comment:
created_at: 2007-01-01 00:00:00
updated_at: 2007-03-01 00:00:00
bug_with_comments_by_users:
note_with_comments_by_users:
id: 6
latitude: <%= 1.5*SCALE %>
longitude: <%= 1.5*SCALE %>
@ -56,8 +56,7 @@ bug_with_comments_by_users:
created_at: 2007-01-01 00:00:00
updated_at: 2007-03-01 00:00:00
bug_closed__by_user:
note_closed_by_user:
id: 7
latitude: <%= 1.6*SCALE %>
longitude: <%= 1.6*SCALE %>
@ -66,4 +65,3 @@ bug_closed__by_user:
created_at: 2007-01-01 00:00:00
updated_at: 2007-03-01 00:00:00
closed_at: 2007-03-01 00:00:00