return aruba to Gemfile and fix aruba scenarios

This commit is contained in:
Reinier Balt 2013-03-02 11:36:46 +01:00
parent 257b969aff
commit 4aa5933946
6 changed files with 32 additions and 21 deletions

View file

@ -50,8 +50,7 @@ group :test do
gem "rspec-expectations"
gem "database_cleaner"
# aruba 0.5 conflics with newer gems
# gem "aruba", :require => false
gem "aruba", :require => false
gem "simplecov"
gem "timecop"

View file

@ -30,12 +30,17 @@ GEM
activesupport (3.2.12)
i18n (~> 0.6)
multi_json (~> 1.0)
acts_as_list (0.1.9)
acts_as_list (0.2.0)
activerecord (>= 3.0)
arel (3.0.2)
aruba (0.5.1)
childprocess (~> 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
bcrypt-ruby (3.0.1)
bluecloth (2.2.0)
builder (3.0.4)
bullet (4.3.0)
bullet (4.3.1)
uniform_notifier
cache_digests (0.2.0)
actionpack (>= 3.2)
@ -54,18 +59,18 @@ GEM
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.4.0)
cucumber (1.2.1)
coffee-script-source (1.5.0)
cucumber (1.2.2)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
gherkin (~> 2.11.6)
multi_json (~> 1.3)
cucumber-rails (1.3.0)
capybara (>= 1.1.2)
cucumber (>= 1.1.8)
nokogiri (>= 1.5.0)
database_cleaner (0.9.1)
diff-lcs (1.1.3)
diff-lcs (1.2.1)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
@ -83,7 +88,7 @@ GEM
json (>= 1.7.6)
hike (1.2.1)
htmlentities (4.3.1)
i18n (0.6.1)
i18n (0.6.4)
journey (1.0.4)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
@ -126,13 +131,13 @@ GEM
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12.1)
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.2)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rubyzip (0.9.9)
safe_yaml (0.8.3)
safe_yaml (0.8.4)
sanitize (2.0.3)
nokogiri (>= 1.4.4, < 1.6)
sass (3.2.6)
@ -158,11 +163,11 @@ GEM
swf_fu (2.0.3)
coffee-script
rails (>= 3.1)
therubyracer (0.11.3)
therubyracer (0.11.4)
libv8 (~> 3.11.8.12)
ref
thor (0.17.0)
tilt (1.3.3)
tilt (1.3.4)
timecop (0.5.9.2)
tolk (1.3.5)
safe_yaml
@ -179,7 +184,7 @@ GEM
will_paginate (3.0.4)
xpath (1.0.0)
nokogiri (~> 1.3)
yard (0.8.4.1)
yard (0.8.5.2)
PLATFORMS
ruby
@ -188,6 +193,7 @@ DEPENDENCIES
RedCloth
aasm
acts_as_list
aruba
bcrypt-ruby
bullet
cache_digests

View file

@ -14,7 +14,7 @@ Feature: Create project from template
And I have logged in as "testuser" with password "secret"
And I have a context called "Context A"
@javascript @announce @wip
@javascript @aruba
Scenario: Create a project with one task
Given a template that looks like
"""
@ -25,7 +25,7 @@ Feature: Create project from template
Then I should have a project called "My first project"
And I should have 1 todo in project "My first project"
@javascript @wip
@javascript @aruba
Scenario: Create a project with dependent tasks
Given a template that looks like
"""

View file

@ -11,14 +11,14 @@ 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
port = Capybara.current_session.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"
set_env('GTD_LOGIN','testuser')
set_env('GTD_PASSWORD', 'secret')
set_env('GTD_TODOS_URL', 'http://localhost:#{port}/todos.xml')
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")

View file

@ -7,6 +7,7 @@ require 'simplecov'
SimpleCov.start 'rails'
require 'cucumber/rails'
require 'aruba/cucumber'
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd

View file

@ -2,3 +2,8 @@ AfterStep('@pause') do
print "Press Return to continue..."
STDIN.getc
end
Before('@aruba') do
@aruba_timeout_seconds = 5
# print "\nsetting timeout for aruba to #{@aruba_timeout_seconds}\n"
end