summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-07-05 17:47:39 +0200
committerRémy Coutable <remy@rymai.me>2018-07-05 17:47:39 +0200
commit098ecc8b19dd65dc0e04421e2cce00b8c3d6dd1b (patch)
tree410dfcc7d0e6b1889ef154bbf92764afb386ba1a /qa
parentf2bc0723ea6cceab355d3d1cddac1f253997dbfc (diff)
downloadgitlab-ce-098ecc8b19dd65dc0e04421e2cce00b8c3d6dd1b.tar.gz
Ensure QA specs are categorized as feature specs by RSpec
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/runtime/browser.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb
index ecd273c6db8..cee381f3379 100644
--- a/qa/qa/runtime/browser.rb
+++ b/qa/qa/runtime/browser.rb
@@ -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|