mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-21 06:34:07 +01:00
another attempt at #1150 and fix some failing cucumber scenarios
This commit is contained in:
parent
98d8712229
commit
af4489ff6e
11 changed files with 82 additions and 86 deletions
|
|
@ -55,13 +55,6 @@ Given /^I have the following contexts$/ do |table|
|
|||
end
|
||||
end
|
||||
|
||||
# TODO: refactor this to paths.rb
|
||||
When /^I visit the context page for "([^\"]*)"$/ do |context_name|
|
||||
context = @current_user.contexts.find_by_name(context_name)
|
||||
context.should_not be_nil
|
||||
visit "/contexts/#{context.id}"
|
||||
end
|
||||
|
||||
When /^I edit the context name in place to be "([^\"]*)"$/ do |new_context_name|
|
||||
selenium.click "context_name"
|
||||
fill_in "value", :with => new_context_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue