fixes cuke for budget creation

pull/6827/head
Jens Ulferts 12 years ago
parent bdac588970
commit 756b367c80
  1. 6
      features/create_budget.feature
  2. 10
      features/step_definitions/cost_object_steps.rb

@ -13,10 +13,8 @@ Feature: Creating a Budget
And I am already logged in as "testuser"
When I go to the overview page of the project called "project1"
And I toggle the "Budgets" submenu
And I follow "New Budget" within "#main-menu"
And I fill in "cost_object_subject" with "budget1"
And I press "Create"
And I create a budget with the following:
| subject | budget1 |
Then I should be on the show page for the budget "budget1"
And I should see "Successful creation"

@ -0,0 +1,10 @@
When(/^I create a budget with the following:$/) do |table|
rows = table.rows_hash
steps %Q{And I toggle the "Budgets" submenu
And I follow "New Budget" within "#main-menu"
And I fill in "Subject" with "#{rows['subject']}"}
click_button(I18n.t(:button_create), :exact => true)
end
Loading…
Cancel
Save