summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-05 00:44:43 +0200
committermo8it <mo8it@proton.me>2024-04-05 00:44:43 +0200
commit5a233398ebe7078767404bd05ca06e08b37fb3d4 (patch)
tree42f5f9c57971624310c0e99cf58c4931fc0830da /tests
parent919ba88413fcc495ebde288960079f6f627eb5b7 (diff)
Fix tests
Diffstat (limited to 'tests')
-rw-r--r--tests/dev_cargo_bins.rs2
-rw-r--r--tests/integration_tests.rs13
2 files changed, 2 insertions, 13 deletions
diff --git a/tests/dev_cargo_bins.rs b/tests/dev_cargo_bins.rs
index ad4832f..c3faea9 100644
--- a/tests/dev_cargo_bins.rs
+++ b/tests/dev_cargo_bins.rs
@@ -17,7 +17,7 @@ struct InfoToml {
#[test]
fn dev_cargo_bins() {
- let content = fs::read_to_string("exercises/Cargo.toml").unwrap();
+ let content = fs::read_to_string("dev/Cargo.toml").unwrap();
let exercises = toml_edit::de::from_str::<InfoToml>(&fs::read_to_string("info.toml").unwrap())
.unwrap()
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index d1694a3..d853521 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -196,22 +196,11 @@ fn run_test_exercise_does_not_prompt() {
fn run_single_test_success_with_output() {
Command::cargo_bin("rustlings")
.unwrap()
- .args(["--nocapture", "run", "testSuccess"])
- .current_dir("tests/fixture/success/")
- .assert()
- .code(0)
- .stdout(predicates::str::contains("THIS TEST TOO SHALL PASS"));
-}
-
-#[test]
-fn run_single_test_success_without_output() {
- Command::cargo_bin("rustlings")
- .unwrap()
.args(["run", "testSuccess"])
.current_dir("tests/fixture/success/")
.assert()
.code(0)
- .stdout(predicates::str::contains("THIS TEST TOO SHALL PASS").not());
+ .stdout(predicates::str::contains("THIS TEST TOO SHALL PASS"));
}
#[test]