Displaying 1 result from an estimated 1 matches for "it_should_populate_collect".
2007 May 15
3
nested blocks
Hello,
Does anyone have an explanation for why the following code results in
the error that follows? I also would value any criticisms of my
approach (i.e., defining it_should_populate_collections). Thanks
-Chris
#Code
def it_should_populate_collections(condition=nil)
it "should populate any necessary collections #{condition}" do
[*@collections_to_populate].each do |collection|
collection_model = collection.to_s.classify.constantize
collection_model.should...