summaryrefslogtreecommitdiff
path: root/tests/integration_tests.rs
diff options
context:
space:
mode:
authorDenys Smirnov <dendi239@gmail.com>2019-05-09 20:16:06 +0300
committerDenys Smirnov <dendi239@gmail.com>2019-05-09 20:17:38 +0300
commit7cf0d5d15e02ccd52e6d8dd53dcd6f0d7adf888f (patch)
tree78e74154c8735d034d897fd91eebac31a296cbb3 /tests/integration_tests.rs
parent1f2ee8cb62de8b59f6e1ce0a1beb3f3be171f843 (diff)
Add not passing integration test
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r--tests/integration_tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index a077918..3acaf90 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -77,6 +77,16 @@ fn run_single_test_failure() {
}
#[test]
+fn run_single_test_not_passed() {
+ Command::cargo_bin("rustlings")
+ .unwrap()
+ .args(&["r", "testNotPassed.rs"])
+ .current_dir("tests/fixture/failure/")
+ .assert()
+ .code(1);
+}
+
+#[test]
fn run_single_test_no_filename() {
Command::cargo_bin("rustlings")
.unwrap()