[Nitro] Timestamped not working

George Moschovitis 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,
-g.

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
> end
> Og.setup()
> describe 'Timestamped' do
>   it 'should update create_time on save' do
>     p=Post.new
>     p.save
>     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)
>     p.delete
>   end
> end
>
> 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
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070905/0c99ffd0/attachment.html 


More information about the Nitro-general mailing list