Giter Site home page Giter Site logo

Need support for subclasses about dupe HOT 1 OPEN

bloudermilk avatar bloudermilk commented on August 27, 2024
Need support for subclasses

from dupe.

Comments (1)

moonmaster9000 avatar moonmaster9000 commented on August 27, 2024

hi bloudermilk. thanks for using dupe. i think the problem stems from trying to call the duped resource "RightSide::Foo". when you dupe a resource, it essentially creates a glorified hash, and eventually a to_xml will be run on the hash, with the root node set to the name of the resource. so in this case, it sounds like it's setting the root node to RightSide::Foo, which is essentially a namespaced XML node, which i think is probably why REXML is complaining. the solution: call your resource "right_side_foo", or even just "foo". if during some tests, your testing the left side foo, then during that test, create mocked resources named "foo", and then create the intercept mocks to respond to that particular url. same for the right side foo.

from dupe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.