aboutsummaryrefslogtreecommitdiffstats
path: root/spec/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/comments.yml15
-rw-r--r--spec/fixtures/files/interesting.pdfbin0 -> 6280 bytes
-rw-r--r--spec/fixtures/holidays.yml9
-rw-r--r--spec/fixtures/incoming_messages.yml22
-rw-r--r--spec/fixtures/info_request_events.yml17
-rw-r--r--spec/fixtures/info_requests.yml24
-rw-r--r--spec/fixtures/locale/en/app.po4
-rw-r--r--spec/fixtures/locale/en_GB/app.po4
-rw-r--r--spec/fixtures/locale/es/app.po4
-rw-r--r--spec/fixtures/outgoing_messages.yml16
-rw-r--r--spec/fixtures/public_bodies.yml23
-rw-r--r--spec/fixtures/raw_emails.yml7
-rw-r--r--spec/fixtures/track_things.yml16
-rw-r--r--spec/fixtures/users.yml26
14 files changed, 175 insertions, 12 deletions
diff --git a/spec/fixtures/comments.yml b/spec/fixtures/comments.yml
index b73385a55..44db44d54 100644
--- a/spec/fixtures/comments.yml
+++ b/spec/fixtures/comments.yml
@@ -1,3 +1,18 @@
+# == Schema Information
+#
+# Table name: comments
+#
+# id :integer not null, primary key
+# user_id :integer not null
+# comment_type :string(255) default("internal_error"), not null
+# info_request_id :integer
+# body :text not null
+# visible :boolean default(TRUE), not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# locale :text default(""), not null
+#
+
silly_comment:
visible: t
updated_at: 2008-08-13 01:25:17.486939
diff --git a/spec/fixtures/files/interesting.pdf b/spec/fixtures/files/interesting.pdf
new file mode 100644
index 000000000..17f543455
--- /dev/null
+++ b/spec/fixtures/files/interesting.pdf
Binary files differ
diff --git a/spec/fixtures/holidays.yml b/spec/fixtures/holidays.yml
index 5a3d018bc..e6b8889c3 100644
--- a/spec/fixtures/holidays.yml
+++ b/spec/fixtures/holidays.yml
@@ -1,3 +1,12 @@
+# == Schema Information
+#
+# Table name: holidays
+#
+# id :integer not null, primary key
+# day :date
+# description :text
+#
+
date20071130:
id: '1'
day: '2007-11-30'
diff --git a/spec/fixtures/incoming_messages.yml b/spec/fixtures/incoming_messages.yml
index fca5c716c..0bf392be1 100644
--- a/spec/fixtures/incoming_messages.yml
+++ b/spec/fixtures/incoming_messages.yml
@@ -1,3 +1,25 @@
+# == Schema Information
+#
+# Table name: incoming_messages
+#
+# id :integer not null, primary key
+# info_request_id :integer not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# raw_email_id :integer not null
+# cached_attachment_text_clipped :text
+# cached_main_body_text_folded :text
+# cached_main_body_text_unfolded :text
+# subject :text
+# mail_from_domain :text
+# valid_to_reply_to :boolean
+# last_parsed :datetime
+# mail_from :text
+# sent_at :datetime
+# prominence :string(255) default("normal"), not null
+# prominence_reason :text
+#
+
useless_incoming_message:
id: 1
info_request_id: 101
diff --git a/spec/fixtures/info_request_events.yml b/spec/fixtures/info_request_events.yml
index 3907703d8..b2f40cc37 100644
--- a/spec/fixtures/info_request_events.yml
+++ b/spec/fixtures/info_request_events.yml
@@ -1,3 +1,20 @@
+# == Schema Information
+#
+# Table name: info_request_events
+#
+# id :integer not null, primary key
+# info_request_id :integer not null
+# event_type :text not null
+# params_yaml :text not null
+# created_at :datetime not null
+# described_state :string(255)
+# calculated_state :string(255)
+# last_described_at :datetime
+# incoming_message_id :integer
+# outgoing_message_id :integer
+# comment_id :integer
+#
+
useless_outgoing_message_event:
id: 900
params_yaml: "--- \n\
diff --git a/spec/fixtures/info_requests.yml b/spec/fixtures/info_requests.yml
index 97effd036..d64807a49 100644
--- a/spec/fixtures/info_requests.yml
+++ b/spec/fixtures/info_requests.yml
@@ -1,3 +1,27 @@
+# == Schema Information
+#
+# Table name: info_requests
+#
+# id :integer not null, primary key
+# title :text not null
+# user_id :integer
+# public_body_id :integer not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# described_state :string(255) not null
+# awaiting_description :boolean default(FALSE), not null
+# prominence :string(255) default("normal"), not null
+# url_title :text not null
+# law_used :string(255) default("foi"), not null
+# allow_new_responses_from :string(255) default("anybody"), not null
+# handle_rejected_responses :string(255) default("bounce"), not null
+# idhash :string(255) not null
+# external_user_name :string(255)
+# external_url :string(255)
+# attention_requested :boolean default(FALSE)
+# comments_allowed :boolean default(TRUE), not null
+#
+
fancy_dog_request:
id: 101
title: Why do you have & such a fancy dog?
diff --git a/spec/fixtures/locale/en/app.po b/spec/fixtures/locale/en/app.po
index ee5c8d9c8..6d5bca1f9 100644
--- a/spec/fixtures/locale/en/app.po
+++ b/spec/fixtures/locale/en/app.po
@@ -1417,10 +1417,6 @@ msgstr ""
msgid "InfoRequestEvent|Params yaml"
msgstr ""
-#: locale/model_attributes.rb:41
-msgid "InfoRequestEvent|Prominence"
-msgstr ""
-
#: locale/model_attributes.rb:102
msgid "InfoRequest|Allow new responses from"
msgstr ""
diff --git a/spec/fixtures/locale/en_GB/app.po b/spec/fixtures/locale/en_GB/app.po
index 84997a319..f106273a0 100644
--- a/spec/fixtures/locale/en_GB/app.po
+++ b/spec/fixtures/locale/en_GB/app.po
@@ -1417,10 +1417,6 @@ msgstr ""
msgid "InfoRequestEvent|Params yaml"
msgstr ""
-#: locale/model_attributes.rb:41
-msgid "InfoRequestEvent|Prominence"
-msgstr ""
-
#: locale/model_attributes.rb:102
msgid "InfoRequest|Allow new responses from"
msgstr ""
diff --git a/spec/fixtures/locale/es/app.po b/spec/fixtures/locale/es/app.po
index d45d9b3b1..2e0f4302a 100644
--- a/spec/fixtures/locale/es/app.po
+++ b/spec/fixtures/locale/es/app.po
@@ -1553,10 +1553,6 @@ msgstr "InfoRequestEvent|Last described at"
msgid "InfoRequestEvent|Params yaml"
msgstr "InfoRequestEvent|Params yaml"
-#: locale/model_attributes.rb:41
-msgid "InfoRequestEvent|Prominence"
-msgstr "InfoRequestEvent|Prominence"
-
#: locale/model_attributes.rb:102
msgid "InfoRequest|Allow new responses from"
msgstr "InfoRequest|Allow new responses from"
diff --git a/spec/fixtures/outgoing_messages.yml b/spec/fixtures/outgoing_messages.yml
index c71ee08bf..971ce0cc5 100644
--- a/spec/fixtures/outgoing_messages.yml
+++ b/spec/fixtures/outgoing_messages.yml
@@ -1,3 +1,19 @@
+# == Schema Information
+#
+# Table name: outgoing_messages
+#
+# id :integer not null, primary key
+# info_request_id :integer not null
+# body :text not null
+# status :string(255) not null
+# message_type :string(255) not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# last_sent_at :datetime
+# incoming_message_followup_id :integer
+# what_doing :string(255) not null
+#
+
useless_outgoing_message:
id: 1
info_request_id: 101
diff --git a/spec/fixtures/public_bodies.yml b/spec/fixtures/public_bodies.yml
index 6eae53db8..1fa016d3a 100644
--- a/spec/fixtures/public_bodies.yml
+++ b/spec/fixtures/public_bodies.yml
@@ -1,3 +1,26 @@
+# == Schema Information
+#
+# Table name: public_bodies
+#
+# id :integer not null, primary key
+# name :text not null
+# short_name :text not null
+# request_email :text not null
+# version :integer not null
+# last_edit_editor :string(255) not null
+# last_edit_comment :text not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# url_name :text not null
+# home_page :text default(""), not null
+# notes :text default(""), not null
+# first_letter :string(255) not null
+# publication_scheme :text default(""), not null
+# api_key :string(255) not null
+# info_requests_count :integer default(0), not null
+# disclosure_log :text default(""), not null
+#
+
geraldine_public_body:
name: The Geraldine Quango
first_letter: T
diff --git a/spec/fixtures/raw_emails.yml b/spec/fixtures/raw_emails.yml
index ad2bc0a63..efdadde7b 100644
--- a/spec/fixtures/raw_emails.yml
+++ b/spec/fixtures/raw_emails.yml
@@ -1,3 +1,10 @@
+# == Schema Information
+#
+# Table name: raw_emails
+#
+# id :integer not null, primary key
+#
+
# The actual email messages are in fixtures/files/raw_emails
#
# Note that the words "money" and "bob" are used in some tests
diff --git a/spec/fixtures/track_things.yml b/spec/fixtures/track_things.yml
index 1c4b323fd..61f1ed532 100644
--- a/spec/fixtures/track_things.yml
+++ b/spec/fixtures/track_things.yml
@@ -1,3 +1,19 @@
+# == Schema Information
+#
+# Table name: track_things
+#
+# id :integer not null, primary key
+# tracking_user_id :integer not null
+# track_query :string(255) not null
+# info_request_id :integer
+# tracked_user_id :integer
+# public_body_id :integer
+# track_medium :string(255) not null
+# track_type :string(255) default("internal_error"), not null
+# created_at :datetime
+# updated_at :datetime
+#
+
track_fancy_dog_request:
id: "10"
track_query: request:why_do_you_have_such_a_fancy_dog
diff --git a/spec/fixtures/users.yml b/spec/fixtures/users.yml
index c9730d855..d996fd31e 100644
--- a/spec/fixtures/users.yml
+++ b/spec/fixtures/users.yml
@@ -1,3 +1,29 @@
+# == Schema Information
+#
+# Table name: users
+#
+# id :integer not null, primary key
+# email :string(255) not null
+# name :string(255) not null
+# hashed_password :string(255) not null
+# salt :string(255) not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# email_confirmed :boolean default(FALSE), not null
+# url_name :text not null
+# last_daily_track_email :datetime default(2000-01-01 00:00:00 UTC)
+# admin_level :string(255) default("none"), not null
+# ban_text :text default(""), not null
+# about_me :text default(""), not null
+# locale :string(255)
+# email_bounced_at :datetime
+# email_bounce_message :text default(""), not null
+# no_limit :boolean default(FALSE), not null
+# receive_email_alerts :boolean default(TRUE), not null
+# address :string(255)
+# dob :date
+#
+
bob_smith_user:
id: "1"
name: Bob Smith