mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 00:11:47 +01:00
get login, mobile and notes features passing
This commit is contained in:
parent
7c935652fb
commit
005723cb4f
52 changed files with 167 additions and 196 deletions
|
|
@ -11,19 +11,17 @@ When /^I execute the script$/ do
|
|||
step "I cd to \"../..\""
|
||||
|
||||
context_id = @current_user.contexts.first.id
|
||||
port = Capybara.current_session.driver.rack_server.port
|
||||
|
||||
# assumes there is a context with id=1
|
||||
cli = "ruby doc/tracks_template_cli.rb -c #{context_id} -f tmp/aruba/template.txt"
|
||||
login = "GTD_LOGIN=testuser"
|
||||
pass = "GTD_PASSWORD=secret"
|
||||
port = Capybara.current_session.driver.rack_server.port
|
||||
gtd_todos_url = "GTD_TODOS_URL=http://localhost:#{port}/todos.xml"
|
||||
gtd_projects_url = "GTD_PROJECTS_URL=http://localhost:#{port}/projects.xml"
|
||||
gtd_context_url_prefix = "GTD_CONTEXT_URL_PREFIX=http://localhost:#{port}/contexts/"
|
||||
gtd_context_url = "GTD_CONTEXT_URL=http://localhost:#{port}/contexts.xml"
|
||||
|
||||
command = "#{gtd_todos_url} #{gtd_projects_url} #{gtd_context_url_prefix} #{gtd_context_url} #{login} #{pass} #{cli}"
|
||||
|
||||
step "I run \"#{command}\""
|
||||
# puts "output = #{combined_output}"
|
||||
set_env('GTD_LOGIN','testuser')
|
||||
set_env('GTD_PASSWORD', 'secret')
|
||||
set_env('GTD_TODOS_URL', 'http://localhost:#{port}/todos.xml')
|
||||
set_env('GTD_PROJECTS_URL', "http://localhost:#{port}/projects.xml")
|
||||
set_env('GTD_CONTEXT_URL_PREFIX', "http://localhost:#{port}/contexts/")
|
||||
set_env("GTD_CONTEXT_URL","http://localhost:#{port}/contexts.xml")
|
||||
|
||||
step "I run `#{cli}`"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue