Move visit_tab! to abstract work package page

pull/3987/head
Oliver Günther 9 years ago
parent f106efcb1d
commit 4cfb830b70
  1. 4
      spec/support/pages/abstract_work_package.rb
  2. 4
      spec/support/pages/full_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)

@ -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!

Loading…
Cancel
Save