阅读背景:

用于访问RSpec中主题层次结构的模式

来源:互联网 

When using RSpec to test deeply nested data structures, I find the need to define subjects in nested contexts in terms of the subjects in the containing contexts. I have looked extensively but not found any examples on how to do with without defining many variables. It complicates the specs and limits the possibility of spec reuse. I am curious whether there is a way to do this in RSpec as it stands and, if not, what would be a good way to approach the problem.When using RSpec to test deeply nested data str




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: