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

How to post using parameter arrays #77

Closed
dguerrier opened this issue Mar 13, 2014 · 1 comment
Closed

How to post using parameter arrays #77

dguerrier opened this issue Mar 13, 2014 · 1 comment

Comments

@dguerrier
Copy link

I'm trying to test an older API that expects a post with user parameters that can be read as an array by a PHP backend

curl "http://localhost/user/create" -d "user[email_address]=test678@asdddddd.com&user[password]=password"

I tried

frisby.create('Subscribe a user')
.post('hhttp://localhost/user/create', {
user[email_address]: "test1@asdddddd.com",
})
.expectStatus(200)
.toss()

but it choked on the brackets. Is there a way to do this?

@dguerrier
Copy link
Author

nevermind, just put it in qoutes

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

1 participant