Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
komaeda committed Mar 20, 2019
1 parent 91dce31 commit 6a27ba7
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::process::Command;
use assert_cmd::prelude::*;
use std::process::Command;

#[test]
fn runs_without_arguments() {
Expand All @@ -9,15 +9,17 @@ fn runs_without_arguments() {

#[test]
fn fails_when_in_wrong_dir() {
Command::cargo_bin("rustlings").unwrap()
Command::cargo_bin("rustlings")
.unwrap()
.current_dir("tests/")
.assert()
.failure();
}

#[test]
fn verify_all_success() {
Command::cargo_bin("rustlings").unwrap()
Command::cargo_bin("rustlings")
.unwrap()
.arg("v")
.current_dir("tests/fixture/")
.assert()
Expand All @@ -26,7 +28,8 @@ fn verify_all_success() {

#[test]
fn run_single_compile_success() {
Command::cargo_bin("rustlings").unwrap()
Command::cargo_bin("rustlings")
.unwrap()
.args(&["r", "compSuccess.rs"])
.current_dir("tests/fixture/")
.assert()
Expand All @@ -35,7 +38,8 @@ fn run_single_compile_success() {

#[test]
fn run_single_test_success() {
Command::cargo_bin("rustlings").unwrap()
Command::cargo_bin("rustlings")
.unwrap()
.args(&["r", "testSuccess.rs"])
.current_dir("tests/fixture/")
.assert()
Expand All @@ -44,7 +48,8 @@ fn run_single_test_success() {

#[test]
fn run_single_test_no_filename() {
Command::cargo_bin("rustlings").unwrap()
Command::cargo_bin("rustlings")
.unwrap()
.arg("r")
.current_dir("tests/fixture/")
.assert()
Expand All @@ -53,7 +58,8 @@ fn run_single_test_no_filename() {

#[test]
fn run_single_test_no_exercise() {
Command::cargo_bin("rustlings").unwrap()
Command::cargo_bin("rustlings")
.unwrap()
.args(&["r", "compNoExercise.rs"])
.current_dir("tests/fixture/")
.assert()
Expand Down

0 comments on commit 6a27ba7

Please sign in to comment.