Ensure QA specs are categorized as feature specs by RSpec
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
f2bc0723ea
commit
098ecc8b19
|
@ -32,6 +32,12 @@ module QA
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.configure!
|
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)
|
return if Capybara.drivers.include?(:chrome)
|
||||||
|
|
||||||
Capybara.register_driver :chrome do |app|
|
Capybara.register_driver :chrome do |app|
|
||||||
|
|
Loading…
Reference in New Issue