Skip to content

Commit

Permalink
Fixes test dependency to timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
reborg committed Jun 13, 2009
1 parent b9ab06b commit 8cbf4c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/pomodori/exensions/timestamp_test.rb
Expand Up @@ -22,7 +22,9 @@ def setup
end

it "format the time using same Time convention" do
@ts.strftime('%I:%M%p').downcase.should == "06:06pm"
time_regexp = /^\d{2}:\d{2}[ap]m$/
@ts.strftime('%I:%M%p').downcase.should =~ time_regexp
"2011-01-23 01:24:02 -0700".strftime('%I:%M%p').downcase.should =~ time_regexp
end

end

0 comments on commit 8cbf4c7

Please sign in to comment.