mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 08:21:47 +01:00
fix some tests
This commit is contained in:
parent
fb39d841a7
commit
8697fd2035
4 changed files with 12 additions and 7 deletions
|
|
@ -19,8 +19,8 @@ When /^I edit the context to rename it to "([^\"]*)"$/ do |new_name|
|
|||
|
||||
selenium.click "submit_context_#{@context.id}",
|
||||
:wait_for => :text,
|
||||
:element => "flash",
|
||||
:text => "Context saved"
|
||||
:text => "Context saved",
|
||||
:timeout => 5
|
||||
|
||||
wait_for do
|
||||
selenium.is_element_present("edit_context_#{@context.id}")
|
||||
|
|
|
|||
|
|
@ -9,6 +9,11 @@ Given /^there exists an active context called "([^"]*)" for user "([^"]*)"$/ do
|
|||
@context = user.contexts.create!(:name => context_name, :hide => false)
|
||||
end
|
||||
|
||||
Given /^there exists a context called "([^"]*)" for user "([^"]*)"$/ do |context_name, login|
|
||||
Given "there exists an active context called \"#{context_name}\" for user \"#{login}\""
|
||||
end
|
||||
|
||||
|
||||
Given /^there exists a hidden context called "([^"]*)" for user "([^"]*)"$/ do |context_name, login|
|
||||
user = User.find_by_login(login)
|
||||
user.should_not be_nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue