Tagging all specs within a directory can be done by specifying metadata
config.define_derived_metadata(:file_path => %r{/spec/unit_tests/}) do |metadata|
metadata[:unit] = true
endIn this example, rspec -t unit would run all the unit tests.
Tagging all specs within a directory can be done by specifying metadata
config.define_derived_metadata(:file_path => %r{/spec/unit_tests/}) do |metadata|
metadata[:unit] = true
endIn this example, rspec -t unit would run all the unit tests.