Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load function is overriding other load files #9

Open
welguisz opened this issue Oct 14, 2016 · 4 comments
Open

load function is overriding other load files #9

welguisz opened this issue Oct 14, 2016 · 4 comments

Comments

@welguisz
Copy link
Contributor

@ludocracy ... For some reason, the load function in duxml.rb is causing spec tests not to run for me. When I change the name from load to duxml_load, I am able to get my spec tests moving. Not for sure what is happening, but just letting you know.

@welguisz
Copy link
Contributor Author

@ludocracy 'load' is a Kernel method name. https://ruby-doc.org/core-2.3.1/Kernel.html#method-i-load

@ludocracy
Copy link
Owner

if you're including Duxml then you'll have to specify the Kernel's
implementation instead. you could also not include Duxml directly.

On Fri, Oct 14, 2016 at 9:16 AM, David Welguisz notifications@github.com
wrote:

@ludocracy https://github.com/ludocracy ... For some reason, the load
function in duxml.rb is causing spec tests not to run for me. When I change
the name from load to duxml_load, I am able to get my spec tests moving.
Not for sure what is happening, but just letting you know.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#9, or mute the thread
https://github.com/notifications/unsubscribe-auth/ANZMvFzIX2W0umoSv7xlr7gQxISR180qks5qz46ngaJpZM4KXDth
.

@welguisz
Copy link
Contributor Author

There is a collision happening right now between rSpec and Duxml. rSpec is calling load. rSpec is expecting that load is the Kernel function not Duxml load function. I was thinking if you could put a rescue block it would be helpful.

@ludocracy
Copy link
Owner

Can you write an example of what you're looking for and branch it? I'll take a look at it.

On Oct 19, 2016, at 9:24 AM, David Welguisz notifications@github.com wrote:

There is a collision happening right now between rSpec and Duxml. rSpec is calling load. rSpec is expecting that load is the Kernel function not Duxml load function. I was thinking if you could put a rescue block it would be helpful.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants