mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-08 02:08:50 +01:00
remove dynamic finders from cucumber scenarios
This commit is contained in:
parent
2b2572a2d1
commit
48e47fc009
20 changed files with 133 additions and 134 deletions
|
|
@ -48,7 +48,7 @@ end
|
|||
When /^I delete the user "([^\"]*)"$/ do |username|
|
||||
# click "//tr[@id='user-3']//img"
|
||||
# assert_confirmation "Warning: this will delete user 'john', all their actions, contexts, project and notes. Are you sure that you want to continue?"
|
||||
user = User.find_by_login(username)
|
||||
user = User.where(:login => username).first
|
||||
user.should_not be_nil
|
||||
|
||||
handle_js_confirm do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue