Skip to content

Commit

Permalink
fix $ escaping in spock_primer.adoc (spockframework#1052)
Browse files Browse the repository at this point in the history
Example before a fix cannot be compiled because there is used GString and $ have special meaning so we need escape $.
  • Loading branch information
Yanatrill authored and szpak committed Nov 21, 2019
1 parent 0444e42 commit 59b8421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/spock_primer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,10 @@ Spock directly supports this style of specification with the `given:` label:
given: "an empty bank account"
// ...
when: "the account is credited $10"
when: "the account is credited \$10"
// ...
then: "the account's balance is $10"
then: "the account's balance is \$10"
// ...
----

Expand Down

0 comments on commit 59b8421

Please sign in to comment.