Functionality to change the version of cookbooks based on another
environment
Fix the error ask_question? method and test spec

[#60089536]