diff --git a/app/views/deliverables/_form.html.erb b/app/views/deliverables/_form.html.erb index 71d01f6..61a0315 100644 --- a/app/views/deliverables/_form.html.erb +++ b/app/views/deliverables/_form.html.erb @@ -1,13 +1,13 @@ <% form.inputs do %> <%= form.input :title, :required => true %> - <%= form.input :type, :required => true, :as => :select, :collection => [["Fixed", "fixed"]] %> + <%= form.input :type, :required => true, :as => :select, :collection => [["Fixed", "FixedDeliverable"]] %> <%= form.input :manager %> <%= form.input :start_date, :as => :string, :input_html => {:size => 10}, :hint => calendar_for('deliverable_start_date') %> <%= form.input :end_date, :as => :string, :input_html => {:size => 10}, :hint => calendar_for('deliverable_end_date') %> <%= form.input :notes, :input_html => {:class => 'wiki-edit', :rows => '5'} %> <% end %> <% form.buttons do %> - <%= form.commit_button %> + <%= form.commit_button :label => l(:button_save) %> <%= link_to(l(:button_cancel), cancel_path) %> <% end %> diff --git a/test/integration/deliverables_new_test.rb b/test/integration/deliverables_new_test.rb index c4ad50a..5bdc453 100644 --- a/test/integration/deliverables_new_test.rb +++ b/test/integration/deliverables_new_test.rb @@ -31,7 +31,7 @@ class DeliverablesNewTest < ActionController::IntegrationTest fill_in "End Date", :with => '2010-12-31' fill_in "Notes", :with => 'Some notes on the deliverable' - click_button "Create Deliverable" + click_button "Save" assert_response :success assert_template 'contracts/show'