From 4eeb00b74d40923206ec3a8370c208fea87b8201 Mon Sep 17 00:00:00 2001 From: Christian Ratz Date: Wed, 2 Oct 2013 09:48:59 +0200 Subject: [PATCH] clean up fixed some modal steps remove view path shifting from engine since it is done by the core --- features/step_definitions/modal_steps.rb | 4 ++-- lib/open_project/backlogs/engine.rb | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/features/step_definitions/modal_steps.rb b/features/step_definitions/modal_steps.rb index c864ebf584..c1b7952e5d 100644 --- a/features/step_definitions/modal_steps.rb +++ b/features/step_definitions/modal_steps.rb @@ -7,7 +7,7 @@ When(/^I open the modal window for the story "(.*?)"$/) do |subject| end When(/^I switch the modal window into edit mode$/) do - modal = find(".modal", :visible => true) + modal = find(".modal") within(modal) do click_link("Update") @@ -17,6 +17,6 @@ When(/^I switch the modal window into edit mode$/) do end def safeguard_backlogs_modal_in_edit_mode - find_field("work_package[description]", :visible => true) + find_field("work_package[description]") end diff --git a/lib/open_project/backlogs/engine.rb b/lib/open_project/backlogs/engine.rb index 266ff7860d..7e8ee3ed04 100644 --- a/lib/open_project/backlogs/engine.rb +++ b/lib/open_project/backlogs/engine.rb @@ -155,10 +155,5 @@ module OpenProject::Backlogs end end - - config.after_initialize do - # We are overwriting versions/_form.html.erb so our view must be found first - VersionsController.view_paths.unshift("#{config.root}/app/views") - end end end