summaryrefslogtreecommitdiffstats
path: root/tests/versions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/versions.rs')
-rw-r--r--tests/versions.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/versions.rs b/tests/versions.rs
index a7b41f8..b111e61 100644
--- a/tests/versions.rs
+++ b/tests/versions.rs
@@ -8,12 +8,6 @@ use aur_build::pkgver;
use aur_build::review::{candidates, diff};
use common::*;
-// What remains here is what a unit test cannot be: both tests build a real
-// package, publish it, and then move its upstream, so they need the fixture
-// harness and a database. The pure comparison vectors, the chunk rule, the
-// epoch rules and the dependency grammar all moved into src/pkgver/mod.rs,
-// where they are unit tests of the module rather than consumers of it.
-
#[test]
fn a_downgrade_in_the_aur_is_flagged_not_silently_served() {
let (env, fx) = env_with_fixture("plain-make");
@@ -49,8 +43,6 @@ fn an_epoch_bump_is_an_upgrade_even_though_the_version_went_down() {
assert!(!version.body.contains("DOWNGRADE"), "an epoch bump must not read as a downgrade: {:?}", version.body);
}
-// --- helpers -------------------------------------------------------------
-
fn publish(env: &Env, name: &str) {
let c = detect_raw(env, name);
let dd = diff::render_and_store(&env.db, &env.cfg, &c).unwrap();