aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/api_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-08-15 10:24:08 +0100
committerLouise Crow <louise.crow@gmail.com>2013-08-15 10:24:08 +0100
commitc2fe6bec28a9b43c84b58fde305b19d179760c13 (patch)
tree466354ca48819f291b7d552de0078af3eb55682c /spec/controllers/api_controller_spec.rb
parent212dcc44e73e29ff0852aead03e38806705bdc99 (diff)
parent8714cf41012ad039f4bc97ba00593414468497e1 (diff)
Merge branch 'feature/further-request-event-fixes' into rails-3-develop
Diffstat (limited to 'spec/controllers/api_controller_spec.rb')
-rw-r--r--spec/controllers/api_controller_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/controllers/api_controller_spec.rb b/spec/controllers/api_controller_spec.rb
index 66b8e33f0..8e9d17fbe 100644
--- a/spec/controllers/api_controller_spec.rb
+++ b/spec/controllers/api_controller_spec.rb
@@ -83,6 +83,9 @@ describe ApiController, "when using the API" do
new_request.last_event_forming_initial_request.outgoing_message.body.should == request_data["body"].strip
new_request.public_body_id.should == public_bodies(:geraldine_public_body).id
+ new_request.info_request_events.size.should == 1
+ new_request.info_request_events[0].event_type.should == 'sent'
+ new_request.info_request_events[0].calculated_state.should == 'waiting_response'
end
def _create_request