summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-05 11:23:07 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-21 08:39:32 +0000
commite224ec2d7cbea36dcea43f2b0b5cb20c75c8c502 (patch)
treecb796bc7557c6ed3b0fcea677d4e4c3a209058f9 /templates
parent515096221b94857725e445a9669d3b2f239a9453 (diff)
downloadsubplot-e224ec2d7cbea36dcea43f2b0b5cb20c75c8c502.tar.gz
rust: Use nameslug in rust template
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/rust/template.rs.tera2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/rust/template.rs.tera b/templates/rust/template.rs.tera
index 845cbc7..f1b0580 100644
--- a/templates/rust/template.rs.tera
+++ b/templates/rust/template.rs.tera
@@ -26,7 +26,7 @@ lazy_static! {
// {{ scenario.title }}
#[test]
-fn scenario_{{ loop.index }}() {
+fn {{ scenario.title | nameslug }}() {
let mut scenario = Scenario::new(&base64_decode("{{scenario.title | base64}}"));
{% for step in scenario.steps %}
let step = BUILDER_{{step.function}}::default()