Skip to content

Commit

Permalink
Write spec for line ends. [#65]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Dec 28, 2011
1 parent 690fcb0 commit f142048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/views/events/ical.ics.erb_spec.rb
Expand Up @@ -10,6 +10,11 @@
render :file => 'events/ical.ics.erb'
end

it "should use Windows line ends" do
rendered.should include("#{13.chr}#{10.chr}")
rendered.should_not =~ /[^#{13.chr}]#{10.chr}/
end

it "should countain a product identifier" do
rendered.should have_content("PRODID:-//quorum2.sf.net//#{SITE_TITLE} #{APP_VERSION}//EN")
end
Expand Down

0 comments on commit f142048

Please sign in to comment.