summaryrefslogtreecommitdiff
path: root/tests/integration_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r--tests/integration_tests.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index 652ba60..24268ec 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -105,3 +105,14 @@ fn run_single_test_no_exercise() {
.assert()
.code(1);
}
+
+#[test]
+fn get_hint_for_single_test() {
+ Command::cargo_bin("rustlings")
+ .unwrap()
+ .args(&["h", "testFailure"])
+ .current_dir("tests/fixture/failure")
+ .assert()
+ .code(0)
+ .stdout("Hello!\n");
+}