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
|
|
@ -9,7 +9,7 @@ end
|
|||
|
||||
Then /^I should see a script "([^\"]*)" for "([^\"]*)"$/ do |script, context_name|
|
||||
page.should have_css("##{script}", :visible => true)
|
||||
context = Context.find_by_name(context_name)
|
||||
context = Context.where(:name => context_name).first
|
||||
|
||||
page.should have_content("#{context.id} (* #{context_name} *)")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue