From 7789adc153ff188b0883bbe6c1804e22731d3de2 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Thu, 17 Oct 2013 07:57:23 +0200 Subject: [PATCH] Fixes spec --- spec/controllers/work_packages_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/work_packages_controller_spec.rb b/spec/controllers/work_packages_controller_spec.rb index 0ff6a00efe..afc3717c9d 100644 --- a/spec/controllers/work_packages_controller_spec.rb +++ b/spec/controllers/work_packages_controller_spec.rb @@ -345,7 +345,7 @@ describe WorkPackagesController do it 'should attach attachments if those are provided' do params[:attachments] = 'attachment-blubs-data' - Attachment.should_receive(:attach_files).with(stub_work_package, params[:attachments]) + stub_work_package.should_receive(:attach_files).with(params[:attachments]) controller.stub(:render_attachment_warning_if_needed) call_action