Skip to content

Commit

Permalink
#8 test multiple occurances of the same parameter in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
FRosner committed Jun 28, 2016
1 parent e74abcb commit 5bfcd73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/de/frosner/broccoli/models/TemplateSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class TemplateSpec extends Specification {
Template("test", "Hallo {{name}}, how is {{object}}", "desc").parameters === Set("name", "object")
}

"extract a single parameter with multiple occurances from a template correctly" in {
Template("test", "Hallo {{name}}. I like {{name}}.", "desc").parameters === Set("name")
}

}

}

0 comments on commit 5bfcd73

Please sign in to comment.