Project

General

Profile

Actions

Defect #4543

closed

Tests broken with ruby 1.9

Added by Jean-Philippe Lang over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Ruby support
Target version:
Start date:
2010-01-09
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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 <class
:UserTest>'
    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

Actions

Also available in: Atom PDF