mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 07:48:50 +01:00
9 lines
283 B
Ruby
9 lines
283 B
Ruby
Then /^I see the project "([^"]*)" in the "([^"]*)" list$/ do |name, state|
|
|
project = @current_user.projects.find_by_name(name)
|
|
project.should_not be_nil
|
|
|
|
xpath = "//div[@id='list-#{state}-projects']//div[@id='project_#{project.id}']"
|
|
response.should have_xpath(xpath)
|
|
end
|
|
|
|
|