summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-20 12:41:47 -0700
committerDouwe Maan <douwe@gitlab.com>2015-08-20 12:41:47 -0700
commit54b04f1c5b6c486a67c654ee9987e5f5ec4501fd (patch)
tree6c191226132073546adca92f259d1d17400949ba /spec/workers
parentac268674edfdaa5b8232f9875481410fc5112f60 (diff)
downloadgitlab-ce-54b04f1c5b6c486a67c654ee9987e5f5ec4501fd.tar.gz
Add fixture_file helper.
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/email_receiver_worker_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/workers/email_receiver_worker_spec.rb b/spec/workers/email_receiver_worker_spec.rb
index e0081904db2..e8f1bd2fa2f 100644
--- a/spec/workers/email_receiver_worker_spec.rb
+++ b/spec/workers/email_receiver_worker_spec.rb
@@ -1,12 +1,6 @@
require "spec_helper"
describe EmailReceiverWorker do
- def fixture_file(filename)
- return '' if filename.blank?
- file_path = File.expand_path(Rails.root + 'spec/fixtures/' + filename)
- File.read(file_path)
- end
-
let(:raw_message) { fixture_file('emails/valid_reply.eml') }
context "when reply by email is enabled" do