included Module is not picked up by runtime
-------------------------------------------
Key: JRUBY-5203
URL: http://jira.codehaus.org/browse/JRUBY-5203
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.5.5
Environment: Darwin igrigorik-2.local 10.5.0 Darwin Kernel Version
10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386
Reporter: Ilya Grigorik
First ran into this issue on 1.5.2: https://gist.github.com/708884
Upgrading to 1.5.5 makes the above example work as expected (with and without
--1.9 flag). However, trying to run some more complicated code with same
pattern surfaces the same problem:
<pre>
1) Agent::Channel should have a name
Failure/Error: lambda { Channel.new(:type => String) }.should
raise_error(Channel::NoName)
uninitialized constant Channel
# spec/channel_spec.rb:10
# :1
</pre>
The include is exactly one line above this test:
https://github.com/igrigorik/agent/blob/master/spec/channel_spec.rb#L7
Steps to reproduce:
git clone git://github.com/igrigorik/agent.git; cd agent
ruby -Ilib -Ispec spec/channel_spec.rb
ruby --1.9 -Ilib -Ispec spec/channel_spec.rb
---
It could well be that I'm just doing something silly.. am I?
--
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