用更小的代码示例再次问这个问题:
# this is a dummy shoulda macro that creates a context
def self.macro_context
context "macro" do
yield
end
end
# i am expecting this test to fail within the macro context
context "some context" do
macro_context do
should "test" do
fail
end
end
end
所以我期望看到的是:
1) Error:
test: some context macro context should test. (TestClassName)
但我得到的只是这个:
所以我期望看到的是:
1) Error:
test: some context should test. (TestClassName)
知道我在做什么错吗?