diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-14 13:10:51 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-12-04 12:47:32 +0000 |
commit | 9af56ac5901790fb265a6492531eecbe5dd32f73 (patch) | |
tree | e0694195d9b1a54dd1765c9d22b1f0024de84d54 /spec/controllers/api_controller_spec.rb | |
parent | 2ad6b55a528ac0f747b6804157ed08acb616a437 (diff) |
Add option to load_file_fixture to specify that the file contents should just be loaded as binary.
Diffstat (limited to 'spec/controllers/api_controller_spec.rb')
-rw-r--r-- | spec/controllers/api_controller_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/controllers/api_controller_spec.rb b/spec/controllers/api_controller_spec.rb index 5e148a9f5..1c320f85c 100644 --- a/spec/controllers/api_controller_spec.rb +++ b/spec/controllers/api_controller_spec.rb @@ -258,9 +258,8 @@ describe ApiController, "when using the API" do attachments = incoming_message.get_attachments_for_display attachments.size.should == 1 attachment = attachments[0] - attachment.filename.should == "tfl.pdf" - attachment.body.should == load_file_fixture("tfl.pdf") + attachment.body.should == load_file_fixture("tfl.pdf", as_binary=true) end it "should show information about a request" do |