Comments (5)
try ruby -I lib:test test/pluginator/autodetect_test.rb
from pluginator.
https://github.com/rvm/pluginator/blob/master/lib/pluginator/autodetect.rb#L24
What is the purpose of doing this as I think it is causing the error above.
from pluginator.
For me it fixed the same problem... I do not see Autodetect
being defined anywhere earlier, does it also happen on master?
from pluginator.
to show what problem I'm solving with it I put up this example test.rb
:
test.rb
class A ; end
# Example 1 - how it's written now, first definition, then used as namespace
class B < A ; end
class B
class C ; end
end
# Example 2 - what happens if we require first, then define class
class D
class E; end
end
class D < A ; end
Running it yields this:
# ruby test.rb
test.rb:13:in `<main>': superclass mismatch for class D (TypeError)
It is necessary to define the class with inheritance before we can use it as namespace, especially if we want to use it in other file.
from pluginator.
can you check with #16 (https://github.com/rvm/pluginator/blob/bugfix/ensure-order-of-loading-files-in-tests/test/test_helper.rb#L71)
from pluginator.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pluginator.