Skip to content

Instantly share code, notes, and snippets.

@dblooman
Created October 10, 2014 15:31
Show Gist options
  • Select an option

  • Save dblooman/af5b8f56471bf7c99117 to your computer and use it in GitHub Desktop.

Select an option

Save dblooman/af5b8f56471bf7c99117 to your computer and use it in GitHub Desktop.

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
end

In this example, rspec -t unit would run all the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment