Comments (1)
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)
- Dupe.create doesn't symbolize record keys HOT 1
- Named definition that accepts :class param? HOT 1
- Modifying a duped record modifies the definition of that record
- lazy attributes getting duped return values
- No free intercepts when using a url like http://host/api/v1 HOT 4
- Custom mocks are only called on the *first* request to that URL, not subsequent ones HOT 4
- Not possible to override base find() service call? HOT 3
- Dupe doesn't raise ActiveResource::ResourceNotFound? HOT 1
- Dupe.define :address bugs out HOT 1
- Issue with singularization/pluralization HOT 1
- Rails 2.3? HOT 3
- Support for rspec? HOT 2
- Getting a URI::BadURIError: both URI are relative HOT 3
- Rails 3.1 support HOT 2
- URI::BadURIError: both URI are relative HOT 5
- Dupe only called when Resources not existing HOT 1
- Fails for JSON-based API's HOT 1
- Duped find doesn't work as expected
- Doesn't take acccount of activeresource prefix.
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 dupe.