Skip to content

Commit 468b4a3

Browse files
committed
Fix Rex::MIME::Message specs
1 parent 741f99f commit 468b4a3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/lib/rex/mime/message_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@
369369
end
370370

371371
let(:regexp_web) do
372-
regex = "\r\n"
373-
regex << "--_Part_.*\r\n"
372+
regex = "--_Part_.*\r\n"
374373
regex << "Content-Disposition: form-data; name=\"action\"\r\n"
375374
regex << "\r\n"
376375
regex << "save\r\n"
@@ -388,8 +387,8 @@
388387
Regexp.new(regex)
389388
end
390389

391-
it "returns \\r\\n if Rex::MIME::Message is empty" do
392-
expect(subject.to_s).to eq("\r\n")
390+
it "returns empty string if Rex::MIME::Message is empty" do
391+
expect(subject.to_s).to be_empty
393392
end
394393

395394
it "generates valid MIME email messages" do

0 commit comments

Comments
 (0)