Merge pull request #3794 from opf/load-disabled-specs

Automatically load disable(d)_specs.rb from plugins
pull/3797/head
Stefan Botzenhart 9 years ago
commit 9d9aa3c837
  1. 2
      spec/spec_helper.rb

@ -161,7 +161,7 @@ end
# (and other plugins' specs) keep working with this plugin in an OpenProject configuration
# even if it changes things which would otherwise break existing specs.
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)
if File.exists?(file)

Loading…
Cancel
Save