disable spec of core as menu item is removed

pull/6827/head
Jens Ulferts 9 years ago
parent 64cde5c62b
commit 7617365590
  1. 6
      lib/open_project/reporting/disabled_specs.rb
  2. 4
      lib/open_project/reporting/engine.rb

@ -0,0 +1,6 @@
if Rails.env.test?
require 'rspec/example_disabler'
RSpec::ExampleDisabler.disable_example('Top menu items as a user with permissions displays all options', 'plugin openproject-reporting removes the menu item')
RSpec::ExampleDisabler.disable_example('Top menu items as an admin visits the time sheet page', 'plugin openproject-reporting removes the menu item')
RSpec::ExampleDisabler.disable_example('Top menu items as an admin displays all items', 'plugin openproject-reporting removes the menu item')
end

@ -84,6 +84,10 @@ module OpenProject::Reporting
)
end
initializer 'reporting.register_test_path' do |app|
require File.join(File.dirname(__FILE__), 'disabled_specs')
end
config.to_prepare do
require_dependency 'report/walker'
require_dependency 'report/transformer'

Loading…
Cancel
Save