// TheNewJobIsListed represents a BDD step
TheNewJobIsListed represents a BDD step
// TheNewJobIsListed represents a BDD step
func (j *JobsFeature) TheNewJobIsListed() error {
	var findJobsResponse uc.FindJobsResponse
	err := rest.ReadJSON(j.responseFindJobs.Body, &findJobsResponse)
	if err != nil {
		return err
	}
	job := findJobByName(findJobsResponse, "list")
	if job == nil {
		return errors.New("job not listed when it should")
	}
	return nil
}
func ( j * JobsFeature ) TheNewJobIsListed ( ) error { var findJobsResponse uc . FindJobsResponse err := rest . ReadJSON ( j . responseFindJobs . Body , & findJobsResponse ) if err != nil { return err } job := findJobByName ( findJobsResponse , " " ) if job == nil { return errors . New ( " " ) } return nil }
TheNewJobIsListed represents a BDD step
TheNewJobIsListed represents a BDD step