freeze at a valid time, not 0000-01-01 ...

This commit is contained in:
Florian Staudacher 2012-04-15 13:03:33 +02:00
parent d9d7bbb74b
commit 6c34207e01

View file

@ -9,7 +9,7 @@ describe Diaspora::Relayable do
describe 'interacted_at' do
it 'sets the interacted at of the parent to the created at of the relayable post' do
Timecop.freeze do
Timecop.freeze Time.now do
relayable = build_object
relayable.save
if relayable.parent.respond_to?(:interacted_at) #I'm sorry.