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

Introduce cookie_private for LocalRequest #488

Closed
madeindjs opened this issue Dec 1, 2017 · 2 comments
Closed

Introduce cookie_private for LocalRequest #488

madeindjs opened this issue Dec 1, 2017 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@madeindjs
Copy link

Feature request

Currently to run local test with cookie you should use cookie method.

Example

#[test]
fn should_not_redirect_on_get_new_recipe() {
    let client = Client::new(rocket()).unwrap();
    let request = client.get("/recipes/new").cookie(
        Cookie::new("user_id", "1"),
    );
    let response = request.dispatch();
    assert_eq!(response.status(), Status::Ok);
}

But nothing exists to create private cookie like add_private for rocket::http::Cookies.

What do you think of?

@madeindjs
Copy link
Author

I just saw this opening Pull Request #487

@SergioBenitez SergioBenitez added the duplicate This issue or pull request already exists label Dec 2, 2017
@SergioBenitez
Copy link
Member

Duplicate of #368.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants