[#4180] Don't let Deliverable types to be changed.
This commit is contained in:
@@ -22,11 +22,10 @@ class DeliverablesEditTest < ActionController::IntegrationTest
|
||||
|
||||
assert_select "form#edit_fixed_deliverable_#{@fixed_deliverable.id}" do
|
||||
assert_select "input#fixed_deliverable_title[value=?]", /#{@fixed_deliverable.title}/
|
||||
assert_select "select#fixed_deliverable_type" do
|
||||
assert_select "option[selected=selected][value=FixedDeliverable]"
|
||||
end
|
||||
end
|
||||
|
||||
assert_select "select#fixed_deliverable_type", :count => 0 # Not editable
|
||||
|
||||
fill_in "Title", :with => 'An updated title'
|
||||
check "Feature Sign Off"
|
||||
check "Warranty Sign Off"
|
||||
@@ -50,11 +49,10 @@ class DeliverablesEditTest < ActionController::IntegrationTest
|
||||
|
||||
assert_select "form#edit_hourly_deliverable_#{@hourly_deliverable.id}" do
|
||||
assert_select "input#hourly_deliverable_title[value=?]", /#{@hourly_deliverable.title}/
|
||||
assert_select "select#hourly_deliverable_type" do
|
||||
assert_select "option[selected=selected][value=HourlyDeliverable]"
|
||||
end
|
||||
end
|
||||
|
||||
assert_select "select#hourly_deliverable_type", :count => 0 # Not editable
|
||||
|
||||
fill_in "Title", :with => 'An updated title'
|
||||
check "Feature Sign Off"
|
||||
check "Warranty Sign Off"
|
||||
|
||||
Reference in New Issue
Block a user