aboutsummaryrefslogtreecommitdiffstats
path: root/spec/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/comments.yml9
-rw-r--r--spec/fixtures/incoming_messages.yml7
-rw-r--r--spec/fixtures/info_request_events.yml37
-rw-r--r--spec/fixtures/info_requests.yml15
-rw-r--r--spec/fixtures/outgoing_messages.yml10
-rw-r--r--spec/fixtures/public_bodies.yml13
-rw-r--r--spec/fixtures/public_body_translations.yml11
7 files changed, 100 insertions, 2 deletions
diff --git a/spec/fixtures/comments.yml b/spec/fixtures/comments.yml
index ed1925bfa..b73385a55 100644
--- a/spec/fixtures/comments.yml
+++ b/spec/fixtures/comments.yml
@@ -8,4 +8,13 @@ silly_comment:
user_id: "2"
created_at: 2008-08-13 01:25:17.486939
+sensible_comment:
+ id: 2
+ body: This a wise and helpful annotation.
+ info_request_id: 106
+ visible: t
+ comment_type: request
+ user_id: 1
+ created_at: 2008-08-13 01:25:17.486939
+ updated_at: 2008-08-13 01:25:17.486939
diff --git a/spec/fixtures/incoming_messages.yml b/spec/fixtures/incoming_messages.yml
index 2a5dd872b..a32052413 100644
--- a/spec/fixtures/incoming_messages.yml
+++ b/spec/fixtures/incoming_messages.yml
@@ -11,3 +11,10 @@ useful_incoming_message:
raw_email_id: 2
created_at: 2012-01-26 10:19:23
updated_at: 2012-01-26 10:19:23
+
+another_useful_incoming_message:
+ id: 3
+ info_request_id: 105
+ raw_email_id: 2
+ created_at: 2007-11-13 18:09:20
+ updated_at: 2007-11-13 18:09:20
diff --git a/spec/fixtures/info_request_events.yml b/spec/fixtures/info_request_events.yml
index b19845345..ec6abbf57 100644
--- a/spec/fixtures/info_request_events.yml
+++ b/spec/fixtures/info_request_events.yml
@@ -48,6 +48,8 @@ badger_outgoing_message_event:
described_state: waiting_response
calculated_state: waiting_response
outgoing_message_id: 3
+
+# These in chronological order
boring_outgoing_message_event:
id: 905
params_yaml: "--- \n\
@@ -69,3 +71,38 @@ useful_incoming_message_event:
described_state: successful
calculated_state: successful
+another_boring_outgoing_message_event:
+ id: 907
+ params_yaml: "--- \n\
+ :outgoing_message_id: 5\n"
+ outgoing_message_id: 5
+ info_request_id: 106
+ event_type: sent
+ created_at: 2006-01-12 01:56:58.586598
+ described_state: waiting_response
+ calculated_state: waiting_response
+another_useful_incoming_message_event:
+ id: 908
+ params_yaml: "--- \n\
+ :incoming_message_id: 3\n"
+ incoming_message_id: 3
+ info_request_id: 106
+ event_type: response
+ created_at: 2007-11-13 18:09:20.042061
+ described_state: successful
+ calculated_state: successful
+
+another_comment_event:
+ id: 909
+ info_request_id: 105
+ comment_id: 2
+ params_yaml: "--- \n\
+ :comment_id: 2\n"
+ incoming_message_id:
+ outgoing_message_id:
+ last_described_at:
+ described_state:
+ calculated_state:
+ event_type: comment
+ created_at: 2008-08-12 12:05:12.879634
+
diff --git a/spec/fixtures/info_requests.yml b/spec/fixtures/info_requests.yml
index 9f767e7f3..89c53e9f3 100644
--- a/spec/fixtures/info_requests.yml
+++ b/spec/fixtures/info_requests.yml
@@ -35,10 +35,21 @@ boring_request:
id: 105
title: The cost of boring
url_title: the_cost_of_boring
- created_at: 2012-01-26 10:19:23
- updated_at: 2012-01-26 10:19:23
+ created_at: 2006-01-12 01:56:58.586598
+ updated_at: 2008-08-12 12:05:12.879634
public_body_id: 3
user_id: 1
described_state: successful
awaiting_description: false
idhash: 173fd003
+another_boring_request:
+ id: 106
+ title: The cost of boring
+ url_title: the_cost_of_boring_2
+ created_at: 2006-01-12 01:56:58.586598
+ updated_at: 2007-11-13 18:09:20.042061
+ public_body_id: 5
+ user_id: 1
+ described_state: successful
+ awaiting_description: false
+ idhash: 173fd003
diff --git a/spec/fixtures/outgoing_messages.yml b/spec/fixtures/outgoing_messages.yml
index 3afce92f5..3fb472630 100644
--- a/spec/fixtures/outgoing_messages.yml
+++ b/spec/fixtures/outgoing_messages.yml
@@ -54,5 +54,15 @@ boring_outgoing_message:
created_at: 2012-01-14 01:56:58.586598
what_doing: normal_sort
+another_boring_outgoing_message:
+ id: 5
+ info_request_id: 106
+ message_type: initial_request
+ status: sent
+ body: "How much was spent on boring equipment in the 2010-2011 financial year?"
+ last_sent_at: 2006-01-12 01:57:58.586598
+ created_at: 2006-01-12 01:56:58.586598
+ updated_at: 2006-01-12 01:56:58.586598
+ what_doing: normal_sort
diff --git a/spec/fixtures/public_bodies.yml b/spec/fixtures/public_bodies.yml
index 93fd0fb2e..737fe203f 100644
--- a/spec/fixtures/public_bodies.yml
+++ b/spec/fixtures/public_bodies.yml
@@ -36,3 +36,16 @@ forlorn_public_body:
url_name: lonely
created_at: 2011-01-26 14:11:02.12345
notes: A very lonely public body that no one has corresponded with
+silly_walks_public_body:
+ id: 5
+ version: 1
+ name: "Ministry of Silly Walks"
+ first_letter: M
+ updated_at: 2007-10-25 10:51:01.161639
+ last_edit_comment: Is a comment really required?
+ request_email: silly-walks-requests@localhost
+ last_edit_editor: robin
+ short_name: MSW
+ url_name: msw
+ created_at: 2007-10-25 10:51:01.161639
+ notes: You know the one.
diff --git a/spec/fixtures/public_body_translations.yml b/spec/fixtures/public_body_translations.yml
index 08727e45c..b81dd35a3 100644
--- a/spec/fixtures/public_body_translations.yml
+++ b/spec/fixtures/public_body_translations.yml
@@ -52,3 +52,14 @@ forlorn_en_public_body_translation:
url_name: lonely
locale: en
notes: A very lonely public body that no one has corresponded with
+
+silly_walks_en_public_body_translation:
+ id: 6
+ public_body_id: 5
+ locale: en
+ name: "Ministry of Silly Walks"
+ first_letter: M
+ request_email: silly-walks-requests@localhost
+ short_name: MSW
+ url_name: msw
+ notes: You know the one.