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

Passing object to fixture does not seem to catch calls to API #59

Open
Macrofig opened this issue Aug 23, 2016 · 3 comments
Open

Passing object to fixture does not seem to catch calls to API #59

Macrofig opened this issue Aug 23, 2016 · 3 comments

Comments

@Macrofig
Copy link

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', ... )

@matthewp matthewp self-assigned this Aug 23, 2016
matthewp added a commit that referenced this issue Aug 24, 2016
This test is to make sure that headers can be added to a request and the
proper fixture will still be found: #59
@matthewp
Copy link
Contributor

I created a test for this in cffff6d and it passes. There's some context that I'm missing I think.

@Macrofig
Copy link
Author

@matthewp One difference is that we're using method, not type. Should we be using type instead?

@matthewp
Copy link
Contributor

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.

@matthewp matthewp removed their assignment Dec 15, 2016
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