より小さなコードサンプルでこの質問をもう一度尋ねます:
# 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)
私は何が間違っているのですか?