diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-14 14:56:21 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 12:41:44 +0100 |
commit | a9363f6c3926d5a8cba8db79176c1b76bc4118e7 (patch) | |
tree | 65e15026bd3d1619fa775eeb71d4574106be534e /spec/factories.rb | |
parent | 5104b1323ee8901c46aa76893b160ab5c7972fbb (diff) |
Rewrite download spec
Make it an integration spec so we don't need to touch the internals so
much.
Diffstat (limited to 'spec/factories.rb')
-rw-r--r-- | spec/factories.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index fe93815f5..36f89037a 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -57,11 +57,22 @@ FactoryGirl.define do FactoryGirl.create(:initial_request, info_request: info_request) end - factory :info_request_with_attachments do + factory :info_request_with_incoming do + after(:create) do |info_request, evaluator| + FactoryGirl.create(:incoming_message, info_request: info_request) + end + end + + factory :info_request_with_incoming_attachments do after(:create) do |info_request, evaluator| FactoryGirl.create(:incoming_message_with_attachments, info_request: info_request) end + end + factory :external_request do + user nil + external_user_name 'External User' + external_url 'http://www.example.org/request/external' end end @@ -71,7 +82,7 @@ FactoryGirl.define do email salt "-6116981980.392287733335677" hashed_password '6b7cd45a5f35fd83febc0452a799530398bfb6e8' # jonespassword - + email_confirmed true factory :admin_user do name 'Admin User' admin_level 'super' |