diff --git a/t/Mail/Send.t b/t/Mail/Send.t index 29b522124..d48539563 100644 --- a/t/Mail/Send.t +++ b/t/Mail/Send.t @@ -86,7 +86,7 @@ is( $mime->parts(0)->as_string =~ m/\n/, $newlines, #---------------------------------------------------------------------------- # Test addHtml $mail = WebGUI::Mail::Send->create( $session ); -my $text = <<'EOF'; +$text = <<'EOF'; Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse eu lacus ut ligula fringilla elementum. Cras condimentum, velit commodo pretium semper, odio ante accumsan orci, a ultrices risus justo a nulla. Aliquam erat volutpat. EOF @@ -97,7 +97,7 @@ $mime = $mail->getMimeEntity; # TODO: Test that addHtml creates a body with the right content type # addHtml should add newlines after 78 characters -my $newlines = length $text / 78; +$newlines = length $text / 78; is( $mime->parts(0)->as_string =~ m/\n/, $newlines, "addHtml should add newlines after 78 characters", ); @@ -107,7 +107,7 @@ is( $mime->parts(0)->as_string =~ m/\n/, $newlines, #---------------------------------------------------------------------------- # Test addHtmlRaw $mail = WebGUI::Mail::Send->create( $session ); -my $text = <<'EOF'; +$text = <<'EOF'; Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse eu lacus ut ligula fringilla elementum. Cras condimentum, velit commodo pretium semper, odio ante accumsan orci, a ultrices risus justo a nulla. Aliquam erat volutpat. EOF @@ -117,7 +117,7 @@ $mime = $mail->getMimeEntity; # TODO: Test that addHtmlRaw doesn't add an HTML wrapper # addHtmlRaw should add newlines after 78 characters -my $newlines = length $text / 78; +$newlines = length $text / 78; is( $mime->parts(0)->as_string =~ m/\n/, $newlines, "addHtmlRaw should add newlines after 78 characters", );