Rename work_package to 'work package' in steps.

pull/6827/head
Christian Rijke 11 years ago
parent c4ea6007b2
commit f9f1e91d4c
  1. 6
      features/step_definitions/cost_steps.rb
  2. 4
      features/view_own_rates.feature

@ -56,7 +56,7 @@ Given /^the project "([^\"]+)" has (\d+) [Cc]ost(?: )?[Ee]ntr(?:ies|y) with the
end
end
Given /^the work_package "([^\"]+)" has (\d+) [Cc]ost(?: )?[Ee]ntr(?:ies|y) with the following:$/ do |work_package, count, table|
Given /^the work package "([^\"]+)" has (\d+) [Cc]ost(?: )?[Ee]ntr(?:ies|y) with the following:$/ do |work_package, count, table|
i = WorkPackage.find(:last, :conditions => ["subject = '#{work_package}'"])
as_admin count do
ce = FactoryGirl.build(:cost_entry, :spent_on => (table.rows_hash["date"] ? table.rows_hash["date"].to_date : Date.today),
@ -99,7 +99,7 @@ Given /^there is a standard cost control project named "([^\"]*)"$/ do |name|
| View own cost entries |
And there is a role "Reporter"
And the role "Reporter" may have the following rights:
| Create work_packages |
| Create work packages |
And there is a role "Supplier"
And the role "Supplier" may have the following rights:
| View own hourly rate |
@ -119,7 +119,7 @@ Given /^there is a standard cost control project named "([^\"]*)"$/ do |name|
}
end
Given /^users have times and the cost type "([^\"]*)" logged on the work_package "([^\"]*)" with:$/ do |cost_type, work_package, table|
Given /^users have times and the cost type "([^\"]*)" logged on the work package "([^\"]*)" with:$/ do |cost_type, work_package, table|
i = WorkPackage.find(:last, :conditions => ["subject = '#{work_package}'"])
raise "No such work_package: #{work_package}" unless i

@ -25,7 +25,7 @@ Feature: Permission View Own hourly and cost rates
And there is 1 cost type with the following:
| name | Translation |
| cost rate | 7.00 |
And the work_package "test_work_package" has 1 cost entry with the following:
And the work package "test_work_package" has 1 cost entry with the following:
| units | 2.00 |
| user | testuser |
| cost type | Translation |
@ -34,7 +34,7 @@ Feature: Permission View Own hourly and cost rates
And the issue "test_work_package" has 1 time entry with the following:
| hours | 3.00 |
| user | manager |
And the work_package "test_work_package" has 1 cost entry with the following:
And the work package "test_work_package" has 1 cost entry with the following:
| units | 5.00 |
| user | manager |
| cost type | Translation |

Loading…
Cancel
Save