diff --git a/spec/fixtures/emails/boundary.eml b/spec/fixtures/emails/boundary.eml deleted file mode 100644 index 1250fe498b09b363c38c94bca46bd5d788958c71..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/boundary.eml +++ /dev/null @@ -1,61 +0,0 @@ - -MIME-Version: 1.0 -Received: by 10.64.14.41 with HTTP; Wed, 19 Jun 2013 06:29:41 -0700 (PDT) -In-Reply-To: <51c19490e928a_13442dd8ae892548@tree.mail> -References: <51c19490e928a_13442dd8ae892548@tree.mail> -Date: Wed, 19 Jun 2013 09:29:41 -0400 -Delivered-To: finn@adventuretime.ooo -Message-ID: <CADkmRcL=2aPV7jOcs2i00QGZNwmjYj3qMaJTsKnB7DTP5sgyFQ@mail.gmail.com> -Subject: Re: [Adventure Time] jake mentioned you in 'peppermint butler is - missing' -From: Finn the Human <finn@adventuretime.ooo> -To: jake via Adventure Time <reply+96dcd9072ba9072d06226009d4223a6e@appmail.adventuretime.ooo> -Content-Type: multipart/alternative; boundary=001a11c206a073876a04df81d2a9 - ---001a11c206a073876a04df81d2a9 -Content-Type: text/plain; charset=ISO-8859-1 - -I'll look into it, thanks! - - -On Wednesday, June 19, 2013, jake via Discourse wrote: - -> jake mentioned you in 'peppermint butler is missing' on Adventure -> Time: -> ------------------------------ -> -> yeah, just noticed this cc @jake -> ------------------------------ -> -> Please visit this link to respond: -> http://adventuretime.ooo/t/peppermint-butler-is-missing/7628/2 -> -> To unsubscribe from these emails, visit your user preferences -> <http://adventuretime.ooo/user_preferences>. -> - ---001a11c206a073876a04df81d2a9 -Content-Type: text/html; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable - -I'll look into it, thanks!<span></span><br><br>On Wednesday, June 19, 2= -013, jake via Adventure Time wrote:<br><blockquote class=3D"gmail_quote" st= -yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>sa= -m mentioned you in 'Duplicate message are shown in profile' on Adve= -nture Time</p> - - -<hr><p>yeah, just noticed this cc <a href=3D"http://users/eviltrout" target= -=3D"_blank">@eviltrout</a> </p> - -<hr><p>Please visit this link to respond: <a href=3D"http://adventuretime.oo= -o/t/duplicate-message-are-shown-in-profile/7628/2" target=3D"_blank">http= -://adventuretime.ooo/t/peppermint-butler-is-missing/7628/2</a></= -p> - - -<p>To unsubscribe from these emails, visit your <a href=3D"http://adventuret= -ime.ooo/user_preferences" target=3D"_blank">user preferences</a>.</p> -</blockquote> - ---001a11c206a073876a04df81d2a9-- diff --git a/spec/fixtures/emails/multiple_destinations.eml b/spec/fixtures/emails/multiple_destinations.eml deleted file mode 100644 index 6d31bbf197479ed02bfd5179fcf1b56cf00a3e64..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/multiple_destinations.eml +++ /dev/null @@ -1,40 +0,0 @@ -Return-Path: <jake@adventuretime.ooo> -Received: from iceking.adventuretime.ooo ([unix socket]) by iceking (Cyrus v2.2.13-Debian-2.2.13-19+squeeze3) with LMTPA; Thu, 13 Jun 2013 17:03:50 -0400 -Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by iceking.adventuretime.ooo (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5DL3nFJ016967 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <reply+59d8df8370b7e95c5a49fbf86aeb2c93@appmail.adventuretime.ooo>; Thu, 13 Jun 2013 17:03:50 -0400 -Received: by mail-ie0-f180.google.com with SMTP id f4so21977375iea.25 for <reply+59d8df8370b7e95c5a49fbf86aeb2c93@appmail.adventuretime.ooo>; Thu, 13 Jun 2013 14:03:48 -0700 -Received: by 10.0.0.1 with HTTP; Thu, 13 Jun 2013 14:03:48 -0700 -Date: Thu, 13 Jun 2013 17:03:48 -0400 -From: Jake the Dog <jake@adventuretime.ooo> -To: finn@adventuretime.ooo, reply+59d8df8370b7e95c5a49fbf86aeb2c93@appmail.adventuretime.ooo -Message-ID: <CADkmRc+rNGAGGbV2iE5p918UVy4UyJqVcXRO2=otppgzduJSg@mail.gmail.com> -Subject: re: [Discourse Meta] eviltrout posted in 'Adventure Time Sux' -Mime-Version: 1.0 -Content-Type: text/plain; - charset=ISO-8859-1 -Content-Transfer-Encoding: 7bit -X-Sieve: CMU Sieve 2.2 -X-Received: by 10.0.0.1 with SMTP id n7mr11234144ipb.85.1371157428600; Thu, - 13 Jun 2013 14:03:48 -0700 (PDT) -X-Scanned-By: MIMEDefang 2.69 on IPv6:2001:470:1d:165::1 - -I could not disagree more. I am obviously biased but adventure time is the -greatest show ever created. Everyone should watch it. - -- Jake out - - -On Sun, Jun 9, 2013 at 1:39 PM, eviltrout via Discourse Meta -<reply+59d8df8370b7e95c5a49fbf86aeb2c93@appmail.adventuretime.ooo> wrote: -> -> -> -> eviltrout posted in 'Adventure Time Sux' on Discourse Meta: -> -> --- -> hey guys everyone knows adventure time sucks! -> -> --- -> Please visit this link to respond: http://localhost:3000/t/adventure-time-sux/1234/3 -> -> To unsubscribe from these emails, visit your [user preferences](http://localhost:3000/user_preferences). -> \ No newline at end of file diff --git a/spec/fixtures/emails/paragraphs.cooked b/spec/fixtures/emails/paragraphs.cooked deleted file mode 100644 index da83260e09c916bac791c4acd24792f86fe51c38..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/paragraphs.cooked +++ /dev/null @@ -1,7 +0,0 @@ -<p>Is there any reason the <em>old</em> candy can't be be kept in silos while the new candy -is imported into <em>new</em> silos?</p> - -<p>The thing about candy is it stays delicious for a long time -- we can just keep -it there without worrying about it too much, imo.</p> - -<p>Thanks for listening.</p> \ No newline at end of file diff --git a/spec/fixtures/emails/previous.eml b/spec/fixtures/emails/previous.eml deleted file mode 100644 index 24ac5a63debdfc97d5ad27f6843db63f57c9e9d4..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/previous.eml +++ /dev/null @@ -1,38 +0,0 @@ - -Delivered-To: discourse-reply+cd480e301683c9902891f15968bf07a5@discourse.org -Received: by 10.194.216.104 with SMTP id op8csp80593wjc; - Wed, 24 Jul 2013 07:59:14 -0700 (PDT) -Return-Path: <walter.white@googlemail.com> -References: <topic/5043@discourse.org> <51efeb9b36c34_66dc2dfce6811866@discourse.mail> -From: Walter White <walter.white@googlemail.com> -In-Reply-To: <51efeb9b36c34_66dc2dfce6811866@discourse.mail> -Mime-Version: 1.0 (1.0) -Date: Wed, 24 Jul 2013 15:59:10 +0100 -Message-ID: <4597127794206131679@unknownmsgid> -Subject: Re: [Discourse] new reply to your post in 'Crystal Blue' -To: walter via Discourse <reply+cd480e301683c9902891f15968bf07a5@appmail.adventuretime.ooo> -Content-Type: multipart/alternative; boundary=001a11c20edc15a39304e2432790 - -This will not include the previous discussion that is present in this email. - ------------------------------ -Previous discussion -skylerwhite<http://discourse.org/users/skylerwhite> July 24 - -This is a reply. - fring <http://discourse.org/users/fring> July 24 - -This is an older reply. - hank_schrader <http://discourse.org/users/hank_schrader> July 24 - -Of course another reply here. - walterwhite <http://discourse.org/users/walterwhite> July 24 - - ------------------------------ - -To respond, reply to this email or visit -http://discourse.org/t/crystal-blue/5043/10in -your browser. - -To unsubscribe from these emails, visit your user -preferences<http://discourse.org/user_preferences> -. diff --git a/spec/fixtures/emails/previous_replies.eml b/spec/fixtures/emails/previous_replies.eml deleted file mode 100644 index 3fd74482c07ea05dd3b906592d8dfb4c25c4957b..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/previous_replies.eml +++ /dev/null @@ -1,180 +0,0 @@ -Delivered-To: reply@discourse.org -MIME-Version: 1.0 -In-Reply-To: <topic/22638/86406@meta.discourse.org> -References: <topic/22638@meta.discourse.org> - <topic/22638/86406@meta.discourse.org> -Date: Fri, 28 Nov 2014 12:55:32 -0800 -Subject: Re: [Discourse Meta] [Lounge] Testing default email replies -From: Walter White <walter.white@googlemail.com> -To: Discourse Meta <reply@discourse.org> -Content-Type: multipart/alternative; boundary=001a1137c9285318bb0508f17bc5 - ---001a1137c9285318bb0508f17bc5 -Content-Type: text/plain; charset=UTF-8 - -### this is a reply from iOS Gmail app - -The quick brown fox jumps over the lazy dog. The quick brown fox jumps over -the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown -fox jumps over the lazy dog. The quick brown fox jumps over the lazy -dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps -over the lazy dog. - -This is **bold** text in Markdown. - -This is a link to http://example.com - -On Friday, November 28, 2014, Arpit Jalan <info@discourse.org> wrote: - -> techAPJ <https://meta.discourse.org/users/techapj> -> November 28 -> -> Test reply. -> -> First paragraph. -> -> Second paragraph. -> -> To respond, reply to this email or visit -> https://meta.discourse.org/t/testing-default-email-replies/22638/3 in -> your browser. -> ------------------------------ -> Previous Replies codinghorror -> <https://meta.discourse.org/users/codinghorror> -> November 28 -> -> We're testing the latest GitHub email processing library which we are -> integrating now. -> -> https://github.com/github/email_reply_parser -> -> Go ahead and reply to this topic and I'll reply from various email clients -> for testing. -> ------------------------------ -> -> To respond, reply to this email or visit -> https://meta.discourse.org/t/testing-default-email-replies/22638/3 in -> your browser. -> -> To unsubscribe from these emails, visit your user preferences -> <https://meta.discourse.org/my/preferences>. -> - ---001a1137c9285318bb0508f17bc5 -Content-Type: text/html; charset=UTF-8 -Content-Transfer-Encoding: quoted-printable - -### this is a reply from iOS Gmail app<div><br></div><div>The quick brown f= -ox jumps over the lazy dog.=C2=A0<font><span style=3D"background-color:rgba= -(255,255,255,0)">The quick brown fox jumps over the lazy dog.=C2=A0The quic= -k brown fox jumps over the lazy dog.=C2=A0The quick brown fox jumps over th= -e lazy dog.=C2=A0The quick brown fox jumps over the lazy dog.=C2=A0The quic= -k brown fox jumps over the lazy dog.=C2=A0The quick brown fox jumps over th= -e lazy dog.=C2=A0</span></font></div><div><font><span style><br></span></fo= -nt></div><div><font><span style>This is **bold** text in Markdown.</span></= -font></div><div><font><span style><br></span></font></div><div><font><span = -style>This is a link to <a href=3D"http://example.com">http://example.com</= -a><br></span></font><br>On Friday, November 28, 2014, Arpit Jalan <<a hr= -ef=3D"mailto:info@discourse.org">info@discourse.org</a>> wrote:<br><bloc= -kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc= -c solid;padding-left:1ex"><div> - -<table style=3D"margin-bottom:25px" cellspacing=3D"0" cellpadding=3D"0" bor= -der=3D"0"> - <tbody> - <tr> - <td style=3D"vertical-align:top;width:55px"> - <img src=3D"https://meta-discourse.global.ssl.fastly.net/user_avata= -r/meta.discourse.org/techapj/45/3281.png" title=3D"techAPJ" style=3D"max-wi= -dth:100%" width=3D"45" height=3D"45"> - </td> - <td> - <a href=3D"https://meta.discourse.org/users/techapj" style=3D"text-= -decoration:none;font-weight:bold;color:#006699;font-size:13px;font-family:&= -#39;lucida grande',tahoma,verdana,arial,sans-serif;color:#3b5998;text-d= -ecoration:none;font-weight:bold" target=3D"_blank">techAPJ</a><br> - <span style=3D"text-align:right;color:#999999;padding-right:5px;fon= -t-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-size:= -11px">November 28</span> - </td> - </tr> - <tr> - <td style=3D"padding-top:5px" colspan=3D"2"> -<p style=3D"margin-top:0;border:0">Test reply.</p> - -<p style=3D"margin-top:0;border:0">First paragraph.</p> - -<p style=3D"margin-top:0;border:0">Second paragraph.</p> -</td> - </tr> - </tbody> -</table> - - - <div style=3D"color:#666"> - <p>To respond, reply to this email or visit <a href=3D"https://meta.dis= -course.org/t/testing-default-email-replies/22638/3" style=3D"text-decoratio= -n:none;font-weight:bold;color:#006699;color:#666" target=3D"_blank">https:/= -/meta.discourse.org/t/testing-default-email-replies/22638/3</a> in your bro= -wser.</p> - </div> - <hr style=3D"background-color:#ddd;min-height:1px;border:1px;background-c= -olor:#ddd;min-height:1px;border:1px"> - <h4>Previous Replies</h4> - - <table style=3D"margin-bottom:25px" cellspacing=3D"0" cellpadding=3D"0" b= -order=3D"0"> - <tbody> - <tr> - <td style=3D"vertical-align:top;width:55px"> - <img src=3D"https://meta-discourse.global.ssl.fastly.net/user_avata= -r/meta.discourse.org/codinghorror/45/5297.png" title=3D"codinghorror" style= -=3D"max-width:100%" width=3D"45" height=3D"45"> - </td> - <td> - <a href=3D"https://meta.discourse.org/users/codinghorror" style=3D"= -text-decoration:none;font-weight:bold;color:#006699;font-size:13px;font-fam= -ily:'lucida grande',tahoma,verdana,arial,sans-serif;color:#3b5998;t= -ext-decoration:none;font-weight:bold" target=3D"_blank">codinghorror</a><br= -> - <span style=3D"text-align:right;color:#999999;padding-right:5px;fon= -t-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-size:= -11px">November 28</span> - </td> - </tr> - <tr> - <td style=3D"padding-top:5px" colspan=3D"2"> -<p style=3D"margin-top:0;border:0">We're testing the latest GitHub emai= -l processing library which we are integrating now.</p> - -<p style=3D"margin-top:0;border:0"><a href=3D"https://github.com/github/ema= -il_reply_parser" style=3D"text-decoration:none;font-weight:bold;color:#0066= -99" target=3D"_blank">https://github.com/github/email_reply_parser</a></p> - -<p style=3D"margin-top:0;border:0">Go ahead and reply to this topic and I&#= -39;ll reply from various email clients for testing.</p> -</td> - </tr> - </tbody> -</table> - - -<hr style=3D"background-color:#ddd;min-height:1px;border:1px;background-col= -or:#ddd;min-height:1px;border:1px"> - -<div style=3D"color:#666"> -<p>To respond, reply to this email or visit <a href=3D"https://meta.discour= -se.org/t/testing-default-email-replies/22638/3" style=3D"text-decoration:no= -ne;font-weight:bold;color:#006699;color:#666" target=3D"_blank">https://met= -a.discourse.org/t/testing-default-email-replies/22638/3</a> in your browser= -.</p> -</div> -<div style=3D"color:#666"> -<p>To unsubscribe from these emails, visit your <a href=3D"https://meta.dis= -course.org/my/preferences" style=3D"text-decoration:none;font-weight:bold;c= -olor:#006699;color:#666" target=3D"_blank">user preferences</a>.</p> -</div> -</div> -</blockquote></div> - ---001a1137c9285318bb0508f17bc5-- diff --git a/spec/fixtures/emails/too_many_mentions.eml b/spec/fixtures/emails/too_many_mentions.eml deleted file mode 100644 index 9cc7b75c94fae5fe175a8acdcadb56706538df87..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/too_many_mentions.eml +++ /dev/null @@ -1,31 +0,0 @@ -Return-Path: <jake@adventuretime.ooo> -Received: from iceking.adventuretime.ooo ([unix socket]) by iceking (Cyrus v2.2.13-Debian-2.2.13-19+squeeze3) with LMTPA; Thu, 13 Jun 2013 17:03:50 -0400 -Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by iceking.adventuretime.ooo (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5DL3nFJ016967 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <reply+59d8df8370b7e95c5a49fbf86aeb2c93@discourse.example.com>; Thu, 13 Jun 2013 17:03:50 -0400 -Received: by mail-ie0-f180.google.com with SMTP id f4so21977375iea.25 for <reply+59d8df8370b7e95c5a49fbf86aeb2c93@discourse.example.com>; Thu, 13 Jun 2013 14:03:48 -0700 -Received: by 10.0.0.1 with HTTP; Thu, 13 Jun 2013 14:03:48 -0700 -Date: Thu, 13 Jun 2013 17:03:48 -0400 -From: Jake the Dog <jake@adventuretime.ooo> -To: reply+636ca428858779856c226bb145ef4fad@appmail.adventuretime.ooo -Message-ID: <CADkmRc+rNGAGGbV2iE5p918UVy4UyJqVcXRO2=otppgzduJSg@mail.gmail.com> -Subject: re: [Discourse Meta] eviltrout posted in 'Adventure Time Sux' -Mime-Version: 1.0 -Content-Type: text/plain; - charset=ISO-8859-1 -Content-Transfer-Encoding: 7bit -X-Sieve: CMU Sieve 2.2 -X-Received: by 10.0.0.1 with SMTP id n7mr11234144ipb.85.1371157428600; Thu, - 13 Jun 2013 14:03:48 -0700 (PDT) -X-Scanned-By: MIMEDefang 2.69 on IPv6:2001:470:1d:165::1 - - -@user1 -@user2 -@user3 -@user4 -@user5 -@user6 -@user7 -@user8 -@user9 -@user10 -@user11 \ No newline at end of file diff --git a/spec/fixtures/emails/valid_incoming.cooked b/spec/fixtures/emails/valid_incoming.cooked deleted file mode 100644 index 2bf35825373874da136e0b69206fcd014d981c6b..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/valid_incoming.cooked +++ /dev/null @@ -1,5 +0,0 @@ -<p>Hey folks,</p> - -<p>I was thinking. Wouldn't it be great if we could post topics via email? Yes it would!</p> - -<p>Jakie</p> diff --git a/spec/fixtures/emails/valid_incoming.eml b/spec/fixtures/emails/valid_incoming.eml deleted file mode 100644 index 409711ab417e40535940585fa830ff9b98a08af3..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/valid_incoming.eml +++ /dev/null @@ -1,25 +0,0 @@ -Return-Path: <from@example.com> -Received: from iceking.adventuretime.ooo ([unix socket]) by iceking (Cyrus v2.2.13-Debian-2.2.13-19+squeeze3) with LMTPA; Thu, 13 Jun 2013 17:03:50 -0400 -Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by iceking.adventuretime.ooo (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5DL3nFJ016967 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <to@example.com>; Thu, 13 Jun 2013 17:03:50 -0400 -Received: by mail-ie0-f180.google.com with SMTP id f4so21977375iea.25 for <to@example.com>; Thu, 13 Jun 2013 14:03:48 -0700 -Received: by 10.0.0.1 with HTTP; Thu, 13 Jun 2013 14:03:48 -0700 -Date: Thu, 13 Jun 2013 17:03:48 -0400 -From: Jake the Dog <from@example.com> -To: <to@example.com> -Message-ID: <CADkmRc+rNGAGGbV2iE5p918UVy4UyJqVcXRO2=otppgzduJSg@mail.gmail.com> -Subject: We should have a post-by-email-feature. -Mime-Version: 1.0 -Content-Type: text/plain; - charset=ISO-8859-1 -Content-Transfer-Encoding: 7bit -X-Sieve: CMU Sieve 2.2 -X-Received: by 10.0.0.1 with SMTP id n7mr11234144ipb.85.1371157428600; Thu, - 13 Jun 2013 14:03:48 -0700 (PDT) -X-Scanned-By: MIMEDefang 2.69 on IPv6:2001:470:1d:165::1 - -Hey folks, - -I was thinking. Wouldn't it be great if we could post topics via email? Yes it would! - -Jakie - diff --git a/spec/fixtures/emails/valid_reply.cooked b/spec/fixtures/emails/valid_reply.cooked deleted file mode 100644 index 4bce79ad12aeefec1b8ed53032ac22cc2dfb1425..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/valid_reply.cooked +++ /dev/null @@ -1,4 +0,0 @@ -<p>I could not disagree more. I am obviously biased but adventure time is the -greatest show ever created. Everyone should watch it.</p> - -<ul><li>Jake out</li></ul> diff --git a/spec/fixtures/emails/via_line.eml b/spec/fixtures/emails/via_line.eml deleted file mode 100644 index 0b2947ff954066ec786c2d3e1b0611a6ef3a1560..0000000000000000000000000000000000000000 --- a/spec/fixtures/emails/via_line.eml +++ /dev/null @@ -1,25 +0,0 @@ - -Delivered-To: discourse-reply+cd480e301683c9902891f15968bf07a5@discourse.org -Received: by 10.194.216.104 with SMTP id op8csp80593wjc; - Wed, 24 Jul 2013 07:59:14 -0700 (PDT) -Return-Path: <walter.white@googlemail.com> -References: <topic/5043@discourse.org> <51efeb9b36c34_66dc2dfce6811866@discourse.mail> -From: Walter White <walter.white@googlemail.com> -In-Reply-To: <51efeb9b36c34_66dc2dfce6811866@discourse.mail> -Mime-Version: 1.0 (1.0) -Date: Wed, 24 Jul 2013 15:59:10 +0100 -Message-ID: <4597127794206131679@unknownmsgid> -Subject: Re: [Discourse] new reply to your post in 'Crystal Blue' -To: walter via Discourse <reply+cd480e301683c9902891f15968bf07a5@appmail.adventuretime.ooo> -Content-Type: multipart/alternative; boundary=001a11c20edc15a39304e2432790 - -Hello this email has content! - -codinghorror via Discourse wrote: -> [codinghorror] codinghorror -> <http://meta.discourse.org/users/codinghorror> -> August 7 -> -> It wouldn't be great at the moment for 100% email, since there's no -> way to be notified of new topics via email. (you can get notified of -> new replies to your posts and topics via email, and reply to them.) diff --git a/spec/lib/gitlab/email/receiver_spec.rb b/spec/lib/gitlab/email/receiver_spec.rb index 65f3ceb5defe5500dcd1e5f04a312f6d3c705349..3d434aeaf916518525791a6abc7fb0f80037922c 100644 --- a/spec/lib/gitlab/email/receiver_spec.rb +++ b/spec/lib/gitlab/email/receiver_spec.rb @@ -31,7 +31,7 @@ describe Gitlab::Email::Receiver do end context "when no sent notificiation for the reply key could be found" do - let(:email_raw) { fixture_file('emails/valid_reply.eml').gsub(reply_key, "nope") } + let(:email_raw) { fixture_file('emails/wrong_reply_key.eml') } it "raises a SentNotificationNotFoundError" do expect { receiver.execute }.to raise_error(Gitlab::Email::Receiver::SentNotificationNotFoundError)