プロジェクト

全般

プロフィール

Vote #66311

完了

Tests broken with ruby 1.9

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Ruby support_33
対象バージョン:
開始日:
2010/01/09
期日:
進捗率:

100%

予定工数:
category_id:
33
version_id:
17
issue_org_id:
4543
author_id:
1
assigned_to_id:
5
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

All tests that use exemplars from nofxx-object_daddy gem raise an error when running with ruby 1.9, making impossible to work on ruby 1.9 Redmine support.

Example:

 25) Error:
test: User#find_by_api_key should return the user if the key is found for an act
ive user. (UserTest):
NoMethodError: undefined method `each' for "C:/workspace/trunk/test/exemplars":S
tring
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/nofxx-object_daddy-0.4.1/lib/object_dad
dy.rb:98:in `gather_exemplars'
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/nofxx-object_daddy-0.4.1/lib/object_dad
dy.rb:94:in `gather_exemplars'
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/nofxx-object_daddy-0.4.1/lib/object_dad
dy.rb:29:in `spawn'
    C:/workspace/trunk/test/object_daddy_helpers.rb:5:in `generate_with_protecte
d!'
    C:/workspace/trunk/test/unit/user_test.rb:180:in `block (2 levels) in '
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/c
ontext.rb:351:in `call'
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/c
ontext.rb:351:in `block in create_test_from_should_hash'
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_
test/version_131_and_above.rb:26:in `run'
    C:/dev/ruby/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/
testing/setup_and_teardown.rb:24:in `run'

Tested with ruby 1.9.1p129 + nofxx-object_daddy-0.4.1


journals

Howdy,

I feel this is an object_daddy bug, not a Redmine error. I'm going to formulate and submit a patch to that project now if someone hasn't already done it.
--------------------------------------------------------------------------------
Actually, patch is trivial: http://github.com/AlekSi/redmine/commit/a01830beca8ea21ac3165248f18125e477268be7
--------------------------------------------------------------------------------
Thanks, I'm planning to build my own object_daddy and merge some other bugfixes.
--------------------------------------------------------------------------------
I've "forked object_daddy":http://gemcutter.org/gems/edavis10-object_daddy, pulled in a few bug fixes, and fixed a few Ruby 1.9 bugs in it. Redmine r3398 will use my version and the tests are now running under 1.9. Several of the failures look like they are related to Coderay or the syntax highlighting features.

@ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]@

Should this be merged into 0.9-stable for 0.9.3? Jean-Philippe, could you create a 0.9.3 Version and close 0.9.2?
--------------------------------------------------------------------------------
> Should this be merged into 0.9-stable for 0.9.3?

0.9.3 is not supposed to run with ruby 1.9, we should first make trunk pass all tests with 1.9.
But if it's needed for merging other fixes in the stable branch, go ahead.

> Jean-Philippe, could you create a 0.9.3 Version and close 0.9.2?

Done.
--------------------------------------------------------------------------------
Ok, I'll merge the commit to 0.9.3 since it was done to fix some object_daddy bugs, not really for 1.9 support.
--------------------------------------------------------------------------------
Merged in 0.9-stable in r3465.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリRuby support_33 にセット
  • 対象バージョン0.9.3_17 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0