As you probably know you're able to pass
When you add a conditions hash to
before(:all), RSpec will only apply that hook to groups or examples that match the conditions. e.g.
From Rspec doc
But sometimes it's necessary to skip a few test cases out of a mass. It's annoying to add tag to each example.
You're able to use conditional statements to check
# before body
it "does something" do
# before hook will run before this example
it "does something else", skip_before: true do
# before hook will be skipped