aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/info_request_spec.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-10-17 11:25:07 +0100
committerGareth Rees <gareth@mysociety.org>2014-10-17 11:25:07 +0100
commitba7f82453914c6e7f4f6f25a5ab510f6dc0af902 (patch)
treeaea9323cd64e5407bc1a73823299b93200c8d542 /spec/models/info_request_spec.rb
parentd814cf0ee66c5e6b4ddbf34b33695c3db034b93f (diff)
parent8c393cefe2f58a407416f099a9262cb6abc8dd9e (diff)
Merge branch 'issues/1778-send-message' into rails-3-develop
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r--spec/models/info_request_spec.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb
index afb8e0949..9ad616ea5 100644
--- a/spec/models/info_request_spec.rb
+++ b/spec/models/info_request_spec.rb
@@ -848,9 +848,11 @@ describe InfoRequest do
context "a series of events on a request" do
it "should have sensible events after the initial request has been made" do
# An initial request is sent
- # The logic that changes the status when a message is sent is mixed up
- # in OutgoingMessage#send_message. So, rather than extract it (or call it)
- # let's just duplicate what it does here for the time being.
+ # FIXME: The logic that changes the status when a message
+ # is sent is mixed up in
+ # OutgoingMessage#record_email_delivery. So, rather than
+ # extract it (or call it) let's just duplicate what it does
+ # here for the time being.
request.log_event('sent', {})
request.set_described_state('waiting_response')
@@ -919,7 +921,8 @@ describe InfoRequest do
request.log_event("status_update", {})
request.set_described_state("waiting_response")
# A normal follow up is sent
- # This is normally done in OutgoingMessage#send_message
+ # This is normally done in
+ # OutgoingMessage#record_email_delivery
request.log_event('followup_sent', {})
request.set_described_state('waiting_response')