fix #1062. I did not test is, so please reopen ticket if it does not work :-)

This commit is contained in:
Reinier Balt 2011-02-08 23:03:05 +01:00
parent 98679cfb1b
commit 564f209800
2 changed files with 5 additions and 1 deletions

View file

@ -275,7 +275,7 @@ module TodosHelper
end
def format_ical_notes(notes)
unless notes.blank?
unless notes.nil? || notes.blank?
split_notes = notes.split(/\n/)
joined_notes = split_notes.join("\\n")
end

View file

@ -115,6 +115,10 @@ class FeedSmokeTest < ActionController::IntegrationTest
assert_success "/projects.txt?token=#{ users(:admin_user).token }"
end
def test_calendar_ics
assert_success "/calendar.ics?token=#{ users(:admin_user).token }"
end
def test_all_projects_txt_with_hidden_project
p = projects(:timemachine)
p.hide!