Fixed step definition to also include the id of the backlog

pull/6827/head
Sebastian Schuster 12 years ago
parent e7d331c90e
commit 3e31f3e3a4
  1. 2
      features/step_definitions/_then_steps.rb

@ -110,7 +110,7 @@ end
Then /^the (\d+)(?:st|nd|rd|th) story in (?:the )?"(.+?)" should have the ID of "(.+?)"$/ do |position, version_name, subject| Then /^the (\d+)(?:st|nd|rd|th) story in (?:the )?"(.+?)" should have the ID of "(.+?)"$/ do |position, version_name, subject|
version = Version.find_by_name(version_name) version = Version.find_by_name(version_name)
actual_story = Issue.find_by_subject_and_fixed_version_id(subject, version) actual_story = Issue.find_by_subject_and_fixed_version_id(subject, version)
step %%I should see "#{actual_story.id}" within ".story:nth-child(#{position}) .id div.t"% step %%I should see "#{actual_story.id}" within "#backlog_#{version.id} .story:nth-child(#{position}) .id div.t"%
end end
Then /^all positions should be unique within versions$/ do Then /^all positions should be unique within versions$/ do

Loading…
Cancel
Save