aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-12-18 19:39:35 +0000
committerLouise Crow <louise.crow@gmail.com>2014-01-13 12:36:42 +0000
commitb5e8bd1ae1cca585e65e9d7401a762ae7e32b89f (patch)
tree63ab12efe9b650599cb40c87dcdf6369e480bea9 /spec/factories.rb
parent75ea3f8298da5943c5b762dc4304b85769b391e1 (diff)
Populate admin public body forms based on a change request.
Also add editable text for an email to be sent to the person requesting the change.
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 7d8f94ac1..8b724ae37 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -144,4 +144,16 @@ FactoryGirl.define do
track_query 'Example Query'
end
+ factory :public_body_change_request do
+ user
+ source_url 'http://www.example.com'
+ notes 'Please'
+ public_body_email 'new@example.com'
+ factory :add_body_request do
+ public_body_name 'A New Body'
+ end
+ factory :update_body_request do
+ public_body
+ end
+ end
end