Of course as soon as I posted this I found 
`RSpec::Core::Configuration#define_derived_metadata` which will do exactly 
what we want without muddling the `rspec-rails` magic so I'm going to go 
that route for now. If folks think making the type inference API 
extendable, though, I'd be happy open a PR.

On Monday, 3 December 2018 12:31:23 UTC-5, [email protected] wrote:
>
> Hi there,
>
> We have a bunch of similar specs that share helpers in a subdirectory of 
> `spec/` and were wondering if we could just extend rspec-rails' type 
> inference based on the spec file's location to give them all a specific 
> "type" and include helpers based on that type. When we popped open the 
> source code we found that the mapping of types to locations happens in a 
> hash constant (`RSpec::Rails::DIRECTORY_MAPPINGS`) that is marked as 
> private.
>
> Would the maintainers be open to a PR that opened up a public API for 
> registering new type/file location configurations? If so I'd be happy to 
> open something!
>
> Cheers,
>
> Brent
>
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/d92c558d-1234-444c-9de2-3174d922f1f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to