[Nitro] Timestamped not working
george.moschovitis at gmail.com
Wed Sep 5 15:18:30 EDT 2007
Let me have a look at this and I will get back to you. The tests reside in a
hidden directory at the moment, I will convert them shortly.
welcome back to the list btw,
On 9/5/07, gabriele renzi <rff_rff at yahoo.it> wrote:
> Hi list,
> while trying the darcs version of Og, I noticed that the test suite is
> almost completely empty, is it normal or am I nmissing something?
> Anyway, since there is nothing to test it, it seems that the timestamped
> mixin doesn't work anymore, I believe that the before methods are not
> called at all.
> Or maybe something is changed since I last used Og, and now this is not
> working anymore:
> require 'og'
> class Post
> is Timestamped
> describe 'Timestamped' do
> it 'should update create_time on save' do
> p.oid.should be_an_instance_of(Fixnum)
> p.create_time.should be_an_instance_of(Time)
> p.update_time.should be_an_instance_of(Time)
> p.access_time.should be_an_instance_of(Time)
> Any hint will be appreciated :)
> goto 10: http://www.goto10.it
> blog it: http://riffraff.blogsome.com
> blog en: http://www.riffraff.info
> Nitro-general mailing list
> Nitro-general at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nitro-general