summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/email/receiver_spec.rb
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/lib/gitlab/email/receiver_spec.rb
parentac268674edfdaa5b8232f9875481410fc5112f60 (diff)
downloadgitlab-ce-54b04f1c5b6c486a67c654ee9987e5f5ec4501fd.tar.gz
Add fixture_file helper.
Diffstat (limited to 'spec/lib/gitlab/email/receiver_spec.rb')
-rw-r--r--spec/lib/gitlab/email/receiver_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/lib/gitlab/email/receiver_spec.rb b/spec/lib/gitlab/email/receiver_spec.rb
index 3d434aeaf91..a6f682a2711 100644
--- a/spec/lib/gitlab/email/receiver_spec.rb
+++ b/spec/lib/gitlab/email/receiver_spec.rb
@@ -1,12 +1,6 @@
require "spec_helper"
describe Gitlab::Email::Receiver do
- def fixture_file(filename)
- return '' if filename.blank?
- file_path = File.expand_path(Rails.root + 'spec/fixtures/' + filename)
- File.read(file_path)
- end
-
before do
allow(Gitlab.config.reply_by_email).to receive(:enabled).and_return(true)
allow(Gitlab.config.reply_by_email).to receive(:address).and_return("reply+%{reply_key}@appmail.adventuretime.ooo")