【发布时间】:2013-04-11 18:34:34
【问题描述】:
有什么方法可以重新定义describe,例如,我可以写
new_describe MyModule::MyClass do
it "does this" do
end
it "does that" do
end
end
而不是
describe "something" do
def app
MyModule::MyClass
end
it "does this" do
end
it "does that" do
end
end
?
【问题讨论】:
-
你到底想做什么?也许还有另一种方法。