RubySpec: self.send(:block_given?) always returns false
-------------------------------------------------------
Key: JRUBY-3746
URL: http://jira.codehaus.org/browse/JRUBY-3746
Project: JRuby
Issue Type: Bug
Components: RubySpec
Affects Versions: JRuby 1.3
Reporter: Charles Oliver Nutter
Priority: Trivial
This is probably because block_given? looks at the frame, and for better send
performance we do not insert a frame for it. So with or without send,
block_given? sees the actual caller's frame. Pretty trivial breakage.
{noformat}
self.send(:block_given?) always returns false FAILED
Expected true
to equal false
/Users/headius/projects/jruby/spec/mspec/lib/mspec/expectations/expectations.rb:15:in
`fail_with'
/Users/headius/projects/jruby/spec/mspec/lib/mspec/matchers/base.rb:9:in `=='
/Users/headius/projects/jruby/spec/ruby/core/kernel/block_given_spec.rb:38
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email