Hi,
I am working on an idea and I was curious if there is a way I can skip a
spec in a before block? I am thinking something like this:
RSpec.configure do |config|
config.before(:each) do |spec|
if some_condition?
spec.skip
end
end
end
Ideally, I want to skip the spec and mark it as so visually, perhaps using
something other like "*", but for now, I just want to have it working. The
above actually does not achieve it, the tests still run.
Any ideas?
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/5fc0d890-7649-4fb6-87a4-213259f53670%40googlegroups.com.