Yo Ludke
Yo Ludke

Reputation: 2259

Declare a whole example group pending at once

I think there was a command to declare a whole example group in rspec (rails) to be pending I believe it was something like before {pending}, but I cannot find it any more. Does anybody know how you can achieve this?

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

Upvotes: 0

Views: 42

Answers (2)

Muhamamd Awais
Muhamamd Awais

Reputation: 2385

Simple replace descibe or context with pending

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

Upvotes: 0

Michael Durrant
Michael Durrant

Reputation: 96484

    pending "Group1" do
        it "example1" do
        end
        it "example2" do
        end
        it "example3" do
        end
    end

Upvotes: 1

Related Questions