aboutsummaryrefslogtreecommitdiff
path: root/tests/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tutorial')
-rw-r--r--tests/tutorial/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tutorial/mod.rs b/tests/tutorial/mod.rs
index b26aa39..25f251b 100644
--- a/tests/tutorial/mod.rs
+++ b/tests/tutorial/mod.rs
@@ -117,6 +117,8 @@ pub fn urls() -> UrlMap {
// update main.rs
fs::write("src/main.rs", r#"
+#[macro_use] extern crate diesel;
+
use tosin::Settings;
use tosin::contrib::admin;
use tosin::db::backend::Connectable;
@@ -174,6 +176,8 @@ pub fn step2() {
step1();
// update main.rs
fs::write("src/main.rs", r#"
+#[macro_use] extern crate diesel;
+
use tosin::Settings;
use tosin::contrib::admin;
use tosin::db::backend::Connectable;
@@ -217,6 +221,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
+diesel = { version = "1.4.4", features = ["sqlite"] }
time = "0.2.27"
tosin = { path = "/home/cactus/Documents/tosin" }
"#).unwrap();
@@ -250,6 +255,8 @@ gather!();
// update main.rs
fs::write("src/main.rs", r#"
+#[macro_use] extern crate diesel;
+
use tosin::Settings;
use tosin::contrib::admin;
use tosin::db::backend::Connectable;