From 4cfb830b7065167000bb6e23297dbaaea5ea9b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 9 Dec 2015 07:53:26 +0100 Subject: [PATCH] Move visit_tab! to abstract work package page --- spec/support/pages/abstract_work_package.rb | 4 ++++ spec/support/pages/full_work_package.rb | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/support/pages/abstract_work_package.rb b/spec/support/pages/abstract_work_package.rb index 287ec18b39..1ed738fc2a 100644 --- a/spec/support/pages/abstract_work_package.rb +++ b/spec/support/pages/abstract_work_package.rb @@ -36,6 +36,10 @@ module Pages @work_package = work_package end + def visit_tab!(tab) + visit path(tab) + end + def expect_subject within(container) do expect(page).to have_content(work_package.subject) diff --git a/spec/support/pages/full_work_package.rb b/spec/support/pages/full_work_package.rb index c80ad8083e..fe11dd195c 100644 --- a/spec/support/pages/full_work_package.rb +++ b/spec/support/pages/full_work_package.rb @@ -72,10 +72,6 @@ module Pages expect(page).to have_selector(container + ' .user', text: user.name) end - def visit_tab!(tab) - visit path(tab) - end - def visit_copy! page = FullWorkPackageCreate.new(work_package) page.visit!