pull/4444/head
Oliver Günther 9 years ago
parent a132a27454
commit 809aacdbff
  1. 9
      spec/features/work_packages/table/switch_types_spec.rb
  2. 2
      spec/support/pages/work_packages_table.rb
  3. 1
      spec/support/work_packages/work_package_field.rb

@ -1,7 +1,6 @@
require 'spec_helper'
describe 'Switching types in work package table', js: true do
let(:user) { FactoryGirl.create :admin }
let(:cf_req_text) {
FactoryGirl.create(
@ -23,7 +22,13 @@ describe 'Switching types in work package table', js: true do
let(:type_task) { FactoryGirl.create(:type_task, custom_fields: [cf_text]) }
let(:type_bug) { FactoryGirl.create(:type_bug, custom_fields: [cf_req_text]) }
let(:project) { FactoryGirl.create(:project, types: [type_task, type_bug], work_package_custom_fields: [cf_text, cf_req_text]) }
let(:project) {
FactoryGirl.create(
:project,
types: [type_task, type_bug],
work_package_custom_fields: [cf_text, cf_req_text]
)
}
let(:work_package) {
FactoryGirl.create(:work_package,
subject: 'Foobar',

@ -36,7 +36,7 @@ module Pages
def initialize(project = nil)
@project = project
end
def visit_query(query)
visit "#{path}?query_id=#{query.id}"
end

@ -15,7 +15,6 @@ class WorkPackageField
@selector = selector || ".inplace-edit.#{property_name}"
ensure_page_loaded
end
def expect_state_text(text)

Loading…
Cancel
Save