diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-05-28 16:01:21 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-06-06 19:35:12 +0100 |
commit | 2ce2fde7db39f66bff7a8093150ed16e3619af16 (patch) | |
tree | 613dcdc10cd80d1f0f7b1d62d9c903872534edfa /spec/controllers/api_controller_spec.rb | |
parent | bbd32eea941c41bb80a5fedfa09c1bbb33374d4b (diff) |
Use a fixture for the external request
Diffstat (limited to 'spec/controllers/api_controller_spec.rb')
-rw-r--r-- | spec/controllers/api_controller_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/controllers/api_controller_spec.rb b/spec/controllers/api_controller_spec.rb index cd47cc2f2..e5422d48a 100644 --- a/spec/controllers/api_controller_spec.rb +++ b/spec/controllers/api_controller_spec.rb @@ -74,8 +74,8 @@ describe ApiController, "when using the API" do end it "should add a response to a request" do - # First we need to create a request - request_id = _create_request + # First we need an external request + request_id = info_requests(:external_request).id # Initially it has no incoming messages IncomingMessage.count(:conditions => ["info_request_id = ?", request_id]).should == 0 @@ -104,7 +104,7 @@ describe ApiController, "when using the API" do it "should add a followup to a request" do # First we need to create a request - request_id = _create_request + request_id = info_requests(:external_request).id # Initially it has one outgoing message OutgoingMessage.count(:conditions => ["info_request_id = ?", request_id]).should == 1 @@ -172,7 +172,11 @@ describe ApiController, "when using the API" do OutgoingMessage.count.should == n_outgoing_messages end - it "should allow attachments to be uploaded" do + it "should not allow files to be attached to a followup" do + + end + + it "should allow files to be attached to a response" do end |