Test errors with Rails 2.1.0 on Windows

3 views
Skip to first unread message

Hatem

unread,
Oct 20, 2008, 11:57:11 AM10/20/08
to CommunityEngine
Hi,

I have installed and run the application successfully with Rails 2.1.0
on Windows and everything works fine. But when run rake
community_engine:test, I get 4 errors related to clipping:

1) Error:
test_should_be_created(ClippingImageTest):
ActiveRecord::RecordInvalid: Validation failed: Size is not included
in the list
./vendor/plugins/community_engine/test/unit/clipping_image_test.rb:14

2) Error:
test_should_get_clipping_image(ClippingTest):
ActiveRecord::RecordInvalid: Validation failed: Image is invalid
./vendor/plugins/community_engine/test/unit/clipping_test.rb:38

3) Error:
test_should_create_clipping(ClippingsControllerTest):
ActiveRecord::RecordInvalid: Validation failed: Image is invalid
./vendor/plugins/community_engine/test/functional/
clippings_controller_test.rb:65

4) Error:
test_should_update_clipping(ClippingsControllerTest):
ActiveRecord::RecordInvalid: Validation failed: Image is invalid
./vendor/plugins/community_engine/test/functional/
clippings_controller_test.rb:99

Any ideas?
Thanks for help.

moritz

unread,
Oct 25, 2008, 5:32:38 PM10/25/08
to CommunityEngine
I had a similar experience and added html_options = {} to
date_select(object_name, method, options = {}) and
datetime_select(object_name, method, options = {}) on lines 81 and 94
in ../community_engine/engine_plugins/globalite/lib/rails/
localized_action_view.rb.

After that the tests passed, but I'm still getting lots of during the
test run:
DEPRECATION WARNING: Inflector is deprecated! Use
ActiveSupport::Inflector instead. See http://www.rubyonrails.org/deprecation
for details. (called from pluralize at /Users/a5sk4s/Development/rails/
AKSoNet/vendor/plugins/community_engine/engine_plugins/globalite/lib/
globalite/l10n.rb:207)

moritz

unread,
Oct 26, 2008, 7:56:41 PM10/26/08
to CommunityEngine
Correction!

The errors were different:

1) Error:
test_should_fail_to_update_contest(ContestsControllerTest):
ActionView::TemplateError: wrong number of arguments (4 for 3)
On line #18 of contests/edit.rhtml

15: <p><%= f.text_field :banner_subtitle %></p>
16:
17: Begin (required):
18: <p><%= f.date_select :begin %></p>
19:
20: End (required):
21: <p><%= f.date_select :end %></p>

My previous post was fixing the date_select error, not the clipping
one mentioned in the first post.

On Oct 25, 2:32 pm, moritz <a5s...@yahoo.com> wrote:
> I had a similar experience and added html_options = {} to
> date_select(object_name, method, options = {}) and
> datetime_select(object_name, method, options = {}) on lines 81 and 94
> in ../community_engine/engine_plugins/globalite/lib/rails/
> localized_action_view.rb.
>
> After that the tests passed, but I'm still getting lots of during the
> test run:
> DEPRECATION WARNING: Inflector is deprecated! Use
> ActiveSupport::Inflector instead.  Seehttp://www.rubyonrails.org/deprecation

Bruno Bornsztein

unread,
Oct 27, 2008, 12:03:32 PM10/27/08
to communi...@googlegroups.com
This looks like a Rails +2.1.0 problem. Are you sure you're on 2.1.0?

moritz

unread,
Oct 27, 2008, 3:33:31 PM10/27/08
to CommunityEngine
In case this question was directed at me, I'm on rails 2.1.2 and
engines 2.1.0 - so far this works quite well after adding option_html
to the date_select / datetime_select. Unfortunately, I picked the
wrong thread for posting this - there were 2 candidates and I was
confused for a minute.

On Oct 27, 9:03 am, "Bruno Bornsztein" <bruno.bornszt...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages