diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-02-28 17:20:31 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-03-17 12:43:39 +0000 |
commit | d166680e1f0bc534fe758cd313456e584f55b26f (patch) | |
tree | aee00cc6ff0cc2a4a1cdcdd1a355ddb2b6362f83 /spec/factories.rb | |
parent | b1dec0e977b7b169d9259916cb860e9d3f0a28d5 (diff) |
Refactor event description to make it easier to translate.
Closes #1313 and #365.
Diffstat (limited to 'spec/factories.rb')
-rw-r--r-- | spec/factories.rb | 26 |
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' |