You can do this:
RSpec.configure do |config|
config.before(:each) do |ex|
unless ex.metadata[:type] == :feature
this_would_blow_up_a_feature_spec
end
end
end
That assumes you are on 2.99 or 3.0. If you're on an earlier version, remove the block `ex` args and use `example.metadata` instead of `ex.metadata`.
HTH,
Myron