end.toraise_error(Gitlab::Ci::YamlProcessor::ValidationError,"rspec job: stage parameter should be .pre, build, test, deploy, .post")
end.toraise_error(Gitlab::Ci::YamlProcessor::ValidationError,"rspec job: chosen stage does not exist; available stages are .pre, build, test, deploy, .post")
end
it"returns errors if job stage is not a defined stage"do