Its easier to flip this and check that foo was expected / allowed to run 
with a circuit breaker, but if you must know if a tag was excluded that 
information is available sort of via the filter manager, which is private 
but stable api...

On Tuesday, 19 July 2022 at 19:23:01 UTC+1 [email protected] wrote:

> Hi Skye,
>
> Can you describe your use case, why would examples need to know that?
>
> - Phil
>
> On 19 Jul 2022, at 19:57, sshaw <[email protected]> wrote:
>
> If one calls with: 
>
>
>     rspec -t ~foo
>
> Is it possible to determine from the spec code, in or out of an example, 
> that the current invocation specifies running examples without the foo tag?
>
> I have looked at doing this at the example level via 
> the RSpec::Core::Example instance passed to the block as well as poking 
> around in RSpec.configuration but cannot find that foo tag has been 
> excluded. Is it even possible? 
>
> Thanks
>
>
> -- 
> 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/bc6d474c-d4ac-49b1-ad46-4fb278d1e6c1n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/rspec/bc6d474c-d4ac-49b1-ad46-4fb278d1e6c1n%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/ddbd6073-ec6b-435a-8f7f-38e1dbe9b1dan%40googlegroups.com.

Reply via email to