So previously it seems it was possible to configure global before block
will get run, say only for controller specs (people even used that I
Now I wasn’t able to find anything like that, and the closest thing I
came up with
RSpec.configure do |config|
if self.class.metadata[:type] == :view
# do my dirty deeds with ViewExampleGroup
Is that OK?