diff --git a/.travis.yml b/.travis.yml index f3e3603a..68bc4417 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,9 @@ language: rust sudo: false dist: trusty +services: + - redis-server + cache: apt: true directories: @@ -39,6 +42,7 @@ before_script: script: - cargo check --all + - cargo test --all --no-fail-fast - | if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then cargo clippy diff --git a/template_yarte/src/main.rs b/template_yarte/src/main.rs index 6a7faa0c..ee4af804 100644 --- a/template_yarte/src/main.rs +++ b/template_yarte/src/main.rs @@ -44,7 +44,7 @@ mod test { assert_eq!( resp.headers().get(http::header::CONTENT_TYPE).unwrap(), - "text/html" + "text/html; charset=utf-8" ); let bytes = atest::read_body(resp); @@ -73,7 +73,7 @@ mod test { assert_eq!( resp.headers().get(http::header::CONTENT_TYPE).unwrap(), - "text/html" + "text/html; charset=utf-8" ); let bytes = atest::read_body(resp); @@ -102,7 +102,7 @@ mod test { assert_eq!( resp.headers().get(http::header::CONTENT_TYPE).unwrap(), - "text/html" + "text/html; charset=utf-8" ); let bytes = atest::read_body(resp);