Automatically load disable(d)_specs.rb from plugins

As filenames differed we check for both filenames.
pull/3794/head
Stefan Botzenhart 9 years ago
parent 42d8e89b23
commit a2449c99bd
  1. 2
      spec/spec_helper.rb

@ -161,7 +161,7 @@ end
# (and other plugins' specs) keep working with this plugin in an OpenProject configuration # (and other plugins' specs) keep working with this plugin in an OpenProject configuration
# even if it changes things which would otherwise break existing specs. # even if it changes things which would otherwise break existing specs.
Rails.application.config.plugins_to_test_paths.each do |dir| Rails.application.config.plugins_to_test_paths.each do |dir|
['disable_specs.rb', 'config_spec_helper.rb'].each do |file_name| ['disabled_specs.rb', 'disable_specs.rb', 'config_spec_helper.rb'].each do |file_name|
file = File.join(dir, 'spec', file_name) file = File.join(dir, 'spec', file_name)
if File.exists?(file) if File.exists?(file)

Loading…
Cancel
Save