Skip to content

Instantly share code, notes, and snippets.

@jharmn
Created January 21, 2013 01:18
Show Gist options
  • Select an option

  • Save jharmn/4582955 to your computer and use it in GitHub Desktop.

Select an option

Save jharmn/4582955 to your computer and use it in GitHub Desktop.
Groovy cucumber example of JSON parsing
Then(~"it should have the field \"(.*)\" containing the value \"(.*)\"") { String field, String value ->
assert parsed."${field}".toString().equals(value)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment