Ensure QA specs are categorized as feature specs by RSpec

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-07-05 17:47:39 +02:00
parent f2bc0723ea
commit 098ecc8b19
No known key found for this signature in database
GPG Key ID: 98DFFD1C0C62B70B
1 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,12 @@ module QA
end
def self.configure!
RSpec.configure do |config|
config.define_derived_metadata(file_path: %r{/qa/specs/features/}) do |metadata|
metadata[:type] = :feature
end
end
return if Capybara.drivers.include?(:chrome)
Capybara.register_driver :chrome do |app|