Commit f759d50d authored by Victor Costa's avatar Victor Costa Committed by Leandro Nunes
Browse files

Fix event test when a time zone is set

parent dc6c5813
......@@ -97,7 +97,8 @@ class EventTest < ActiveSupport::TestCase
end
should 'provide nice display format' do
event = build(Event, :start_date => DateTime.new(2008,1,1), :end_date => DateTime.new(2008,1,1), :link => 'http://www.myevent.org', :body => '<p>my somewhat short description</p>')
date = Time.zone.local(2008, 1, 1, 0, 0, 0)
event = build(Event, :start_date => date, :end_date => date, :link => 'http://www.myevent.org', :body => '<p>my somewhat short description</p>')
display = instance_eval(&event.to_html)
assert_tag_in_string display, :content => Regexp.new("January 1, 2008")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment