Disable failing core spec

pull/6827/head
Hagen Schink 10 years ago
parent d3f4067dda
commit 853fc2f934
  1. 4
      lib/open_project/costs/disabled_specs.rb
  2. 5
      lib/open_project/costs/engine.rb

@ -0,0 +1,4 @@
if Rails.env.test?
require 'rspec/example_disabler'
RSpec::ExampleDisabler.disable_example('WorkPackagesController index with valid query settings passed to front-end client visible attributes all attributes visible', 'plugin openproject-costs changes behavior')
end

@ -193,6 +193,11 @@ module OpenProject::Costs
ActiveRecord::Base.observers.push :rate_observer, :default_hourly_rate_observer, :costs_work_package_observer
end
initializer 'costs.register_test_path' do |app|
require File.join(File.dirname(__FILE__), 'disabled_specs')
app.config.plugins_to_test_paths << root
end
initializer 'costs.patch_number_helper' do |app|
# we have to do the patching in the initializer to make sure we only do this once in development
# since the NumberHelper is not unloaded

Loading…
Cancel
Save