mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 12:18:07 +01:00
10 lines
283 B
Ruby
10 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
|
||
|
|
|
||
|
|
|