07
class HelloJggug extends Specification {
    def "G*                           "() {
        expect:
        name.size() == length

                where:
                name        |   length
                "Groovy"    |   6
                "Grails"    |   6
                "Griffon"   |   7
        }
}    
class MaskedRiderOOOSpec extends Specification {
  def hinoEiji = new HinoEiji()
  def "                          "() {
        given: "                                 "
	       hinoEiji.setCoreMedal(UNKH.getCoreMedal())
        and: "                      "
	       hinoEiji.attachOOODriver()
        and: "                       "
	       hinoEiji.setCoreMedal()
        when: "                              "
	   hinoEiji.scanOOODriver()
	 	
    then: "                              "
	       hinoEiji.comboType == ComboType.TATOBA
    }
}
Spockを使おう!
Spockを使おう!
Spockを使おう!
Spockを使おう!
Spockを使おう!

Spockを使おう!

  • 2.
  • 6.
    class HelloJggug extendsSpecification {     def "G* "() {         expect:         name.size() == length         where:         name     | length         "Groovy" | 6         "Grails" | 6         "Griffon" | 7     } }  
  • 7.
    class MaskedRiderOOOSpec extendsSpecification { def hinoEiji = new HinoEiji() def " "() { given: " " hinoEiji.setCoreMedal(UNKH.getCoreMedal()) and: " " hinoEiji.attachOOODriver() and: " " hinoEiji.setCoreMedal() when: " " hinoEiji.scanOOODriver() then: " " hinoEiji.comboType == ComboType.TATOBA } }