Merge branch 'release/4.3' into feature/rails4

pull/6827/head
Alex Coles 9 years ago
commit 0a563eb048
  1. 2
      features/manage_budget.feature
  2. 6
      features/step_definitions/cost_object_steps.rb

@ -157,7 +157,7 @@ Feature: Managing Budgets
| 5 | labortestcomment2 | testuser | | 5 | labortestcomment2 | testuser |
And I go to the show page of the budget "budget1" And I go to the show page of the budget "budget1"
When I click on "Copy" When I click on "Copy"
Then I should see "New Budget" Then I should see "New budget"
And the planned material costs in row 1 should be "400.00 EUR" And the planned material costs in row 1 should be "400.00 EUR"
And the planned labor costs in row 1 should be "296.00 EUR" And the planned labor costs in row 1 should be "296.00 EUR"
And the planned material costs in row 2 should be "240.00 EUR" And the planned material costs in row 2 should be "240.00 EUR"

@ -22,7 +22,7 @@ When(/^I create a budget with the following:$/) do |table|
rows = table.rows_hash rows = table.rows_hash
steps %Q{And I toggle the "Budgets" submenu steps %Q{And I toggle the "Budgets" submenu
And I follow "New Budget" within "#main-menu" And I follow "New budget" within "#main-menu"
And I fill in "Subject" with "#{rows['subject']}"} And I fill in "Subject" with "#{rows['subject']}"}
click_button(I18n.t(:button_create), :exact => true) click_button(I18n.t(:button_create), :exact => true)
@ -37,7 +37,7 @@ When(/^I setup a budget with the following:$/) do |table|
rows = table.rows_hash rows = table.rows_hash
steps %Q{And I toggle the "Budgets" submenu steps %Q{And I toggle the "Budgets" submenu
And I follow "New Budget" within "#main-menu" And I follow "New budget" within "#main-menu"
And I fill in "Subject" with "#{rows['subject']}"} And I fill in "Subject" with "#{rows['subject']}"}
end end
@ -82,7 +82,7 @@ When(/^I (?:create|update) (?:a|the) (labor|material) item in row (\d+) with the
end end
When(/^I add a new (labor|material) item$/) do | type| When(/^I add a new (labor|material) item$/) do | type|
steps %Q{ When I click on "Add Planned Costs" within "fieldset##{type}_budget_items_fieldset" } steps %Q{ When I click on "Add planned costs" within "fieldset##{type}_budget_items_fieldset" }
end end
Then (/^the planned (labor|material) costs in row (\d+) should be (.+)$/) do | type, row_nr, amount| Then (/^the planned (labor|material) costs in row (\d+) should be (.+)$/) do | type, row_nr, amount|

Loading…
Cancel
Save