djcrankypants / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Provide a Specification.with() overload that states the expected target type #292

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Example: 

def fred = new Person()

expect:
with(fred.spouse, Employee) {
  name == "Wilma"
  employer == "MarsTravelUnited"
}

Original issue reported on code.google.com by pnied...@gmail.com on 12 Jan 2013 at 4:35

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 13 Jan 2013 at 12:30