Project

General

Profile

Actions

Bug #607

closed

Mini/Unit Break assert_send()

Added by JEG2 (James Gray) about 16 years ago. Updated over 13 years ago.

Status:
Closed
ruby -v:
Backport:
[ruby-core:18994]

Description

=begin
$ cat bug.rb
require "test/unit"

class TestAssertSend < Test::Unit::TestCase
def test_bug
assert_send([1, :<, 2])
end
endGalactica:~/Desktop$ ruby bug.rb # test/unit
Loaded suite bug
Started
.
Finished in 0.002001 seconds.

1 tests, 1 assertions, 0 failures, 0 errors
Galactica:~/Desktop$ ruby_dev bug.rb # mini/unit
Loaded suite bug
Started
E
Finished in 0.000978 seconds.

  1. Error:
    test_bug(TestAssertSend):
    TypeError: #Proc:0x0fe434@/usr/local/lib/ruby/1.9.0/mini/test.rb:210 is not a symbol
    /usr/local/lib/ruby/1.9.0/mini/test.rb:163:in assert_send' bug.rb:5:in test_bug'
    /usr/local/lib/ruby/1.9.0/mini/test.rb:410:in run' /usr/local/lib/ruby/1.9.0/mini/test.rb:389:in block (2 levels) in run_test_suites'
    /usr/local/lib/ruby/1.9.0/mini/test.rb:383:in each' /usr/local/lib/ruby/1.9.0/mini/test.rb:383:in block in run_test_suites'
    /usr/local/lib/ruby/1.9.0/mini/test.rb:382:in each' /usr/local/lib/ruby/1.9.0/mini/test.rb:382:in run_test_suites'
    /usr/local/lib/ruby/1.9.0/mini/test.rb:362:in run' /usr/local/lib/ruby/1.9.0/mini/test.rb:311:in block in autorun'

1 tests, 0 assertions, 0 failures, 1 errors
=end

Actions #1

Updated by yugui (Yuki Sonoda) about 16 years ago

  • Target version set to 1.9.0-5

=begin

=end

Actions #2

Updated by zenspider (Ryan Davis) about 16 years ago

=begin

On Sep 27, 2008, at 17:02 , James Gray wrote:

Bug #607: Mini/Unit Break assert_send()
http://redmine.ruby-lang.org/issues/show/607

Author: James Gray
Status: Open, Priority: Normal
Category: lib

$ cat bug.rb
require "test/unit"

class TestAssertSend < Test::Unit::TestCase
def test_bug
assert_send([1, :<, 2])
end
end

DOH. stupid muscle memory... that is fixed and I'm looking into how/
why I don't have coverage on that in my tests.

=end

Actions #3

Updated by ko1 (Koichi Sasada) almost 16 years ago

  • Assignee set to zenspider (Ryan Davis)

=begin

=end

Actions #4

Updated by yugui (Yuki Sonoda) almost 16 years ago

  • Target version changed from 1.9.0-5 to 1.9.1 Release Candidate

=begin

=end

Actions #5

Updated by yugui (Yuki Sonoda) almost 16 years ago

  • Status changed from Open to Closed

=begin
Perhaps it was already fixed.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0