Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from mbj/master

Fix some rubies do not support DateTime#to_date
  • Loading branch information...
commit 01248966c96b51f3e55187ec3530d7f93dfb1ac6 2 parents 04a97e1 + 7ad08ef
Piotr Solnica solnic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/integration/timestamps_spec.rb
2  spec/integration/timestamps_spec.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.