Shoulda教程之二—上下文

原文:http://thoughtbot.com/projects/shoulda/tu×ial/context 上下文 在学习了Should语句以后,Shoulda的更多基本构建代码的知识就是上下文(Context)。上下文建立一个运行should语句的相似场景的fixture。Context代码块能够包含 setup/teardown 代码块,should代码块,或者其余context代码块。
相关文章
相关标签/搜索