0

我认为有一个命令可以在 rspec (rails) 中声明整个示例组处于待处理状态,我相信它类似于before {pending},但我再也找不到它了。有谁知道你怎么能做到这一点?

        context "Group1" do
            before { pending }
            it "example1" do
            end
            it "example2" do
            end
            it "example3" do
            end
        end
4

2 回答 2

1
    pending "Group1" do
        it "example1" do
        end
        it "example2" do
        end
        it "example3" do
        end
    end
于 2012-11-29T12:20:46.730 回答
0

用待处理的简单替换描述或上下文

    pending "Group1" do
        before { pending }
        it "example1" do
        end
        it "example2" do
        end
        it "example3" do
        end
    end
于 2012-11-29T12:23:28.237 回答