[#4180] Don't let Deliverable types to be changed.

This commit is contained in:
Eric Davis
2010-07-01 16:06:20 -07:00
parent 498b7b633d
commit 48136d9fab
2 changed files with 5 additions and 7 deletions
+4 -6
View File
@@ -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"