can-fixture
can-fixture copied to clipboard
Passing object to fixture does not seem to catch calls to API
Using this signature: fixture({method: 'get', url: '/api/v3/organization'}, ...) does not seem to properly capture requests to the api. (We also tried uppercase get GET, still no dice.)
Using this works, though fixture('GET /api/v3/current/organization', ... )
I created a test for this in cffff6d7d1725ea0481940447879160e6b49550d and it passes. There's some context that I'm missing I think.
@matthewp One difference is that we're using method, not type. Should we be using type instead?
I think there's a bug here, I just haven't been able to recreate it in a test. method vs. type doesn't matter, i've tried both.