aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb26
1 files changed, 20 insertions, 6 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 8efc53033..4ae99be5b 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -69,14 +69,22 @@ FactoryGirl.define do
body 'Some information please'
what_doing 'normal_sort'
end
- initialize_with { OutgoingMessage.new({ :status => status,
- :message_type => message_type,
- :body => body,
- :what_doing => what_doing }) }
- after_create do |outgoing_message|
- outgoing_message.send_message
+ end
+ factory :internal_review_request do
+ ignore do
+ status 'ready'
+ message_type 'followup'
+ body 'I want a review'
+ what_doing 'internal_review'
end
end
+ initialize_with { OutgoingMessage.new({ :status => status,
+ :message_type => message_type,
+ :body => body,
+ :what_doing => what_doing }) }
+ after_create do |outgoing_message|
+ outgoing_message.send_message
+ end
end
factory :info_request do
@@ -109,6 +117,12 @@ FactoryGirl.define do
end
end
+ factory :info_request_with_internal_review_request do
+ after_create do |info_request, evaluator|
+ outgoing_message = FactoryGirl.create(:internal_review_request, :info_request => info_request)
+ end
+ end
+
factory :external_request do
user nil
external_user_name 'External User'