diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-02-17 14:18:29 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-02-17 14:18:29 +0000 |
commit | b6686781bd378c44e7ccf3557969547c61e9248f (patch) | |
tree | c65decee2414f2e75af194e6da01851314a20a7a | |
parent | e9b12f81d3e8318db88fee0cb36650f65aeb29c5 (diff) |
Use an empty incoming email to avoid interaction with other tests.
-rw-r--r-- | spec/fixtures/files/incoming-request-empty.email | 8 | ||||
-rw-r--r-- | spec/script/mailin_spec.rb | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/spec/fixtures/files/incoming-request-empty.email b/spec/fixtures/files/incoming-request-empty.email new file mode 100644 index 000000000..890a14f21 --- /dev/null +++ b/spec/fixtures/files/incoming-request-empty.email @@ -0,0 +1,8 @@ +From: EMAIL_FROM +To: FOI Person <EMAIL_TO> +Bcc: +Subject: Re: Nothing to see here. +Reply-To: +In-Reply-To: <471f1eae5d1cb_7347..fdbe67386163@cat.tmail> + + diff --git a/spec/script/mailin_spec.rb b/spec/script/mailin_spec.rb index f9368996d..f0bca2297 100644 --- a/spec/script/mailin_spec.rb +++ b/spec/script/mailin_spec.rb @@ -17,7 +17,7 @@ end describe "When importing mail into the application" do it "should not produce any output and should return a 0 code on importing a plain email" do - r = mailin_test("incoming-request-plain.email") + r = mailin_test("incoming-request-empty.email") r.status.should == 0 r.out.should == "" end |