Fix ls_spec.rb . In rbx and jruby-19mode, Module.methods do not have constants method. So change to chekc nesting method.