Hello

Your a probably looking for exclusion filters:

See
https://relishapp.com/rspec/rspec-core/v/2-0/docs/filtering/exclusion-filters

Regards
Benoit

Le 05/09/2019 à 03:18, Wael a écrit :
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/5fc0d890-7649-4fb6-87a4-213259f53670%40googlegroups.com
> <https://groups.google.com/d/msgid/rspec/5fc0d890-7649-4fb6-87a4-213259f53670%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/bc51a276-9b6e-0f08-417a-fa868c0d2983%40hopsandfork.com.

Reply via email to