-
-
Notifications
You must be signed in to change notification settings - Fork 943
Closed
Milestone
Description
When I try to run the following code in jruby-1.7.0preview1
alias :context :describeI get NameError: undefined method 'describe' for class 'Object', though there are no issues doing so in MRI. Aliasing other top-level methods (such as require)results in no problems
Specifically, the file is at watirmark/spec/spec_helper.rb available at https://github.com/convio/watirmark
bigger trace
NameError: undefined method 'describe' for class 'Object'
(root) at /home/bjonica/Development/GitHub/watirmark/spec/spec_helper.rb:11
configure at /home/bjonica/.rvm/gems/jruby-1.7.0.preview1/gems/rspec-core-2.11.0/lib/rspec/core.rb:93
(root) at /home/bjonica/Development/GitHub/watirmark/spec/spec_helper.rb:9
require at org/jruby/RubyKernel.java:991
(root) at /home/bjonica/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/shared/rubygems/custom_require.rb:1
require at /home/bjonica/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/shared/rubygems/custom_require.rb:36
load at org/jruby/RubyKernel.java:1017
(root) at /home/bjonica/Development/GitHub/watirmark/spec/page_spec.rb:1
map at org/jruby/RubyArray.java:2350
(root) at /home/bjonica/.rvm/gems/jruby-1.7.0.preview1/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:1
load_spec_files at /home/bjonica/.rvm/gems/jruby-1.7.0.preview1/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:780
load_spec_files at /home/bjonica/.rvm/gems/jruby-1.7.0.preview1/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:780
run at /home/bjonica/.rvm/gems/jruby-1.7.0.preview1/gems/rspec-core-2.11.0/lib/rspec/core/command_line.rb:22
Running Oracle Java HotSpot(TM) Client 1.7.0_5
Unfortunately, I'm not sure where to narrow down the problem. Though it's a relatively easy bit to just comment out on my side, I did find it odd that an included, defined method that can safely be called in the lines coming before or after the alias statement results in a NameError in jruby.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels