Skip to content

Commit

Permalink
Rearrange formatting in cookies test.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Jan 10, 2017
1 parent da7026c commit e2f342a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/cookies/src/tests.rs
Expand Up @@ -45,10 +45,9 @@ fn test_index() {

// Render the template with a context that contains the message.
context.insert("message", "Hello from Rocket!");
let template = Template::render("index", &context);

// Test the route with the "message" cookie.
test_body(Some(Cookie::new("message".to_string(),
"Hello from Rocket!".to_string())),
template.to_string());
let cookie = Cookie::new("message".into(), "Hello from Rocket!".into());
let template = Template::render("index", &context);
test_body(Some(cookie), template.to_string());
}

0 comments on commit e2f342a

Please sign in to comment.