Skip to content

Commit

Permalink
Test that proves we still need the > regex
Browse files Browse the repository at this point in the history
The regex gets rid of the '>' before the reply delimiter.

Addresses concerns in thoughtbot#76.
  • Loading branch information
r38y authored and calebhearth committed Sep 4, 2013
1 parent bd7fb30 commit 025ea79
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/griddler/email_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@
body_from_email(:text, body).should eq 'Hello.'
end

it 'removes > in "> Reply ABOVE THIS LINE" ' do
body = <<-EOF
Hello.
> Reply ABOVE THIS LINE
EOF

body_from_email(:text, body).should eq 'Hello.'
end

it 'removes any non-content things above Reply ABOVE THIS LINE' do
body = <<-EOF
Hello.
Expand Down

0 comments on commit 025ea79

Please sign in to comment.