Fix database reset test
@@ -208,7 +208,6 @@ fn reset_respects_migrations_dir_from_diesel_toml() {
.build();
let db = database(&p.database_url()).create();
- db.execute("CREATE TABLE posts ( id INTEGER )");
db.execute("CREATE TABLE users ( id INTEGER )");
p.create_migration_in_directory(
@@ -218,13 +217,11 @@ fn reset_respects_migrations_dir_from_diesel_toml() {
"DROP TABLE users",
);
- assert!(db.table_exists("posts"));
assert!(db.table_exists("users"));
let result = p.command("database").arg("reset").run();
assert!(result.is_success(), "Result was unsuccessful {:?}", result);
- assert!(!db.table_exists("posts"));
assert!(db.table_exists("users"));
assert!(db.table_exists("__diesel_schema_migrations"));
}
