Hello all, I'm new to Community Engine, and I couldn't find this
posted anywhere, so I thought I would ask here.  I have a brand new
install of Community Engine, installed using the documentation on the
CE site.  I went with the short version install method of running the
install_template.rb as part of the rails command.

I have verified that I have all the prerequisites:

Ruby version: ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-
darwin8.11.1]
Rails Version: 2.3.2
ImageMagick 6.4.8
Gems:
- desert 0.5.0
- rmagick 2.10.0
- hpricot 0.6.164
- htmlentities 4.0.0
- rake 0.8.3
- haml 2.2.1

The issue I'm having is that after I run rake test, I get three errors
running rake community_engine:test task:

1) Error:
test_should_get_index(StatisticsControllerTest):
NoMethodError: undefined method `today' for Time:Class
    vendor/plugins/community_engine/app/controllers/
statistics_controller.rb:9:in `index'
    haml (2.2.1) lib/sass/plugin/rails.rb:19:in `process'
    /vendor/plugins/community_engine/test/functional/
statistics_controller_test.rb:14:in `test_should_get_index'

  2) Error:
test_should_get_stats_if_admin(UsersControllerTest):
NoMethodError: undefined method `today' for Time:Class
    vendor/plugins/community_engine/app/controllers/
users_controller.rb:412:in `statistics'
    haml (2.2.1) lib/sass/plugin/rails.rb:19:in `process'
    /vendor/plugins/community_engine/test/functional/
users_controller_test.rb:418:in `test_should_get_stats_if_admin'

  3) Error:
test_should_show_user_statistics(UsersControllerTest):
NoMethodError: undefined method `today' for Time:Class
    vendor/plugins/community_engine/app/controllers/
users_controller.rb:412:in `statistics'
    haml (2.2.1) lib/sass/plugin/rails.rb:19:in `process'
    /vendor/plugins/community_engine/test/functional/
users_controller_test.rb:448:in `test_should_show_user_statistics'

486 tests, 828 assertions, 0 failures, 3 errors

As far as I know from the Ruby documentation, the Time class doesn't
implement a today class method: http://www.ruby-doc.org/core/classes/Time.html

Any help would be greatly appreciated.

Also, THANK YOU for including a comprehensive test suite for this
plugin.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to