urubatan / easybtest

This plugin will enable the use of Easyb to write Behavior driven Tests in a grails application.

This URL has Read+Write access

urubatan (author)
Tue Apr 22 08:47:51 -0700 2008
commit  55d1e23d63d5e54f84f09142fc37a166cad67684
tree    169b271c66a97946ce3d394a2dd7b27b22e38054
parent  4876b376aa79bc1d85b706d12f53dd95e9eea5a4
README
This plugin enables the use of Behavior Driven Development to test your Grails Application,
The library behind this is easyb, easyb is a BDD library written in groovy.
For example, you can test your app like this:

given "an invalid zip code", {
  invalidzipcode = "221o1"
}
and "given the zipcodevalidator is initialized", {
  zipvalidate = new ZipCodeValidator()
}
when "validate is invoked with the invalid zip code", {
  value = zipvalidate.validate(invalidzipcode)
}
then "the validator instance should return false", {
  value.shouldBe false
}