Permalink
Browse files

Merge pull request #6 from mbj/master

Fix some rubies do not support DateTime#to_date
  • Loading branch information...
2 parents 04a97e1 + 7ad08ef commit 01248966c96b51f3e55187ec3530d7f93dfb1ac6 @solnic solnic committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/integration/timestamps_spec.rb
View
2 spec/integration/timestamps_spec.rb
@@ -8,7 +8,7 @@
it "should not set the created_at/on fields if they're already set" do
green_smoothie = GreenSmoothie.new(:name => 'Banana')
time = (DateTime.now - 100)
- date = time.to_date
+ date = Date.new(time.year,time.month,time.day)
green_smoothie.created_at = time
green_smoothie.created_on = date
green_smoothie.save

0 comments on commit 0124896

Please sign in to comment.