Skip to content

Commit

Permalink
Formatting fix only - remove a bit of extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
henare committed Nov 18, 2011
1 parent c037569 commit 02baf64
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec/mailers/alert_notifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
end

context "Text email" do

it "should nicely format a list of multiple planning applications" do
get_message_part(@email, /plain/).should == <<-EOF
The following new planning applications have been found near 24 Bruce Rd, Glenbrook NSW 2773 within 800 m:
Expand Down Expand Up @@ -83,7 +82,6 @@
To stop receiving these emails: http://dev.planningalerts.org.au/alerts/abcdef/unsubscribe
EOF
end

end

context "HTML emails" do
Expand All @@ -96,7 +94,6 @@
contains_link(@html_body, "http://dev.planningalerts.org.au/applications/2?utm_medium=email&utm_source=alerts", "Bar Street, Foo")
end


it 'should contain application descriptions' do
@html_body.should contain "Knock something down"
@html_body.should contain "Put something up"
Expand All @@ -110,6 +107,5 @@ def get_message_part (mail, content_type)
def contains_link(html, url, text)
html.should match /<a href="#{url.gsub(/\//, '\/').gsub(/&/, '&amp;').gsub(/\?/, '\?')}"[^>]*>#{text}<\/a>/
end

end
end

0 comments on commit 02baf64

Please sign in to comment.