Permalink
Browse files

First passing cucumber test.

  • Loading branch information...
1 parent a6b67d0 commit 730d069e6b8dad1d275a81032ba3aabf926e128e Helder Ribeiro committed Oct 28, 2010
Showing with 508 additions and 5 deletions.
  1. +1 −0 .rspec
  2. +14 −0 Gemfile
  3. +83 −5 Gemfile.lock
  4. +2 −0 autotest/discover.rb
  5. +8 −0 features/landing_page.feature
  6. +219 −0 features/step_definitions/web_steps.rb
  7. +54 −0 features/support/env.rb
  8. +33 −0 features/support/paths.rb
  9. +57 −0 lib/tasks/cucumber.rake
  10. +10 −0 script/cucumber
  11. +27 −0 spec/spec_helper.rb
  12. BIN vendor/cache/ZenTest-4.4.0.gem
  13. BIN vendor/cache/autotest-rails-4.1.0.gem
  14. BIN vendor/cache/capybara-0.4.0.gem
  15. BIN vendor/cache/capybara-envjs-0.4.0.gem
  16. BIN vendor/cache/celerity-0.8.2.gem
  17. BIN vendor/cache/childprocess-0.1.3.gem
  18. BIN vendor/cache/{compass-0.10.5.gem → compass-0.10.6.gem}
  19. BIN vendor/cache/configuration-1.1.0.gem
  20. BIN vendor/cache/cucumber-0.8.5.gem
  21. BIN vendor/cache/cucumber-rails-0.3.2.gem
  22. BIN vendor/cache/culerity-0.2.12.gem
  23. BIN vendor/cache/database_cleaner-0.6.0.gem
  24. BIN vendor/cache/diff-lcs-1.1.2.gem
  25. BIN vendor/cache/envjs-0.3.8.gem
  26. BIN vendor/cache/factory_girl-1.3.2.gem
  27. BIN vendor/cache/faker-0.3.1.gem
  28. BIN vendor/cache/ffi-0.6.3.gem
  29. BIN vendor/cache/gherkin-2.1.5.gem
  30. BIN vendor/cache/i18n-0.4.1.gem
  31. BIN vendor/cache/i18n-0.4.2.gem
  32. BIN vendor/cache/johnson-2.0.0.pre3.gem
  33. BIN vendor/cache/json_pure-1.4.6.gem
  34. BIN vendor/cache/launchy-0.3.7.gem
  35. BIN vendor/cache/mail-2.2.7.gem
  36. BIN vendor/cache/mail-2.2.9.gem
  37. BIN vendor/cache/rspec-2.0.1.gem
  38. BIN vendor/cache/rspec-core-2.0.1.gem
  39. BIN vendor/cache/rspec-expectations-2.0.1.gem
  40. BIN vendor/cache/rspec-mocks-2.0.1.gem
  41. BIN vendor/cache/rspec-rails-2.0.1.gem
  42. BIN vendor/cache/rubyzip-0.9.4.gem
  43. BIN vendor/cache/selenium-webdriver-0.0.29.gem
  44. BIN vendor/cache/stackdeck-0.2.0.gem
  45. BIN vendor/cache/term-ansicolor-1.0.5.gem
  46. BIN vendor/cache/trollop-1.16.2.gem
  47. BIN vendor/cache/xpath-0.1.2.gem
View
1 .rspec
@@ -0,0 +1 @@
+--colour
View
14 Gemfile
@@ -41,3 +41,17 @@ gem 'twitter-text', '~>1.1.1'
gem 'uuidtools', '~>2.1.1'
gem 'whatlanguage', '~>1.0.0'
gem 'warden', '~>0.10.7'
+
+group :test do
+ gem "rspec"
+ gem "rspec-rails", "~> 2.0.0"
+ gem "factory_girl"
+ gem "faker"
+ gem "autotest-rails"
+ gem "database_cleaner"
+ gem "cucumber-rails"
+ gem "capybara"
+ gem "capybara-envjs"
+ gem "launchy"
+ gem "ruby-debug"
+end
View
@@ -19,6 +19,7 @@ GEM
bcrypt-ruby (~> 2.1.2)
warden (~> 0.10.7)
RedCloth (4.1.9)
+ ZenTest (4.4.0)
abstract (1.0.0)
actionmailer (3.0.1)
actionpack (= 3.0.1)
@@ -49,42 +50,86 @@ GEM
addressable (2.2.2)
arel (1.0.1)
activesupport (~> 3.0.0)
+ autotest-rails (4.1.0)
+ ZenTest
bcrypt-ruby (2.1.2)
bson (1.1.1)
bson_ext (1.1.1)
builder (2.1.2)
+ capybara (0.4.0)
+ celerity (>= 0.7.9)
+ culerity (>= 0.2.4)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (>= 0.0.27)
+ xpath (~> 0.1.2)
+ capybara-envjs (0.4.0)
+ capybara (~> 0.4.0)
+ envjs (>= 0.3.7)
+ celerity (0.8.2)
+ childprocess (0.1.3)
+ ffi (~> 0.6.3)
columnize (0.3.1)
- compass (0.10.5)
+ compass (0.10.6)
haml (>= 3.0.4)
compass-colors (0.3.1)
compass (>= 0.8.7)
+ configuration (1.1.0)
+ cucumber (0.8.5)
+ builder (~> 2.1.2)
+ diff-lcs (~> 1.1.2)
+ gherkin (~> 2.1.4)
+ json_pure (~> 1.4.3)
+ term-ansicolor (~> 1.0.4)
+ cucumber-rails (0.3.2)
+ cucumber (>= 0.8.0)
+ culerity (0.2.12)
+ database_cleaner (0.6.0)
+ diff-lcs (1.1.2)
differ (0.1.1)
dynamic_form (1.1.3)
+ envjs (0.3.8)
+ johnson (>= 2.0.0.pre3)
erubis (2.6.6)
abstract (>= 1.0.0)
+ factory_girl (1.3.2)
+ faker (0.3.1)
fancy-buttons (0.5.5)
compass (>= 0.10.0)
haml (>= 3.0.2)
faraday (0.4.6)
addressable (>= 2.1.1)
rack (>= 1.0.1)
+ ffi (0.6.3)
+ rake (>= 0.8.7)
geoip (0.8.7)
+ gherkin (2.1.5)
+ trollop (~> 1.16.2)
goalie (0.0.4)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
haml (3.0.22)
- i18n (0.4.1)
+ i18n (0.4.2)
jnunemaker-validatable (1.8.4)
activesupport (>= 2.3.4)
+ johnson (2.0.0.pre3)
+ stackdeck (~> 0.2)
json (1.2.4)
+ json_pure (1.4.6)
+ launchy (0.3.7)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
linecache (0.43)
magent (0.4.2)
mongo (>= 0.1.0)
uuidtools (>= 2.0.0)
- mail (2.2.7)
+ mail (2.2.9)
activesupport (>= 2.3.6)
- mime-types
- treetop (>= 1.4.5)
+ i18n (~> 0.4.1)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
mime-types (1.16)
mongo (1.1.1)
bson (>= 1.1.1)
@@ -126,6 +171,18 @@ GEM
rake (0.8.7)
rdiscount (1.6.3.2)
responders (0.6.2)
+ rspec (2.0.1)
+ rspec-core (~> 2.0.1)
+ rspec-expectations (~> 2.0.1)
+ rspec-mocks (~> 2.0.1)
+ rspec-core (2.0.1)
+ rspec-expectations (2.0.1)
+ diff-lcs (>= 1.1.2)
+ rspec-mocks (2.0.1)
+ rspec-core (~> 2.0.1)
+ rspec-expectations (~> 2.0.1)
+ rspec-rails (2.0.1)
+ rspec (~> 2.0.0)
ruby-debug (0.10.3)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.3.0)
@@ -134,13 +191,22 @@ GEM
ruby-openid (2.1.8)
ruby-prof (0.9.2)
ruby-stemmer (0.8.2)
+ rubyzip (0.9.4)
sanitize (1.2.1)
nokogiri (~> 1.4.1)
+ selenium-webdriver (0.0.29)
+ childprocess (>= 0.0.7)
+ ffi (~> 0.6.3)
+ json_pure
+ rubyzip
+ stackdeck (0.2.0)
tabs_on_rails (1.3.1)
+ term-ansicolor (1.0.5)
thor (0.14.3)
tmail (1.2.7.1)
treetop (1.4.8)
polyglot (>= 0.3.1)
+ trollop (1.16.2)
twitter-text (1.1.8)
actionpack
twitter_oauth (0.3.6)
@@ -152,24 +218,34 @@ GEM
warden (0.10.7)
rack (>= 1.0.0)
whatlanguage (1.0.0)
+ xpath (0.1.2)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
BadMinus-devise (~> 1.2.0)
RedCloth (~> 4.1.1)
+ autotest-rails
bson_ext
+ capybara
+ capybara-envjs
compass (~> 0.10.2)
compass-colors (~> 0.3.1)
+ cucumber-rails
+ database_cleaner
differ (~> 0.1.1)
dynamic_form
exception_notification!
+ factory_girl
+ faker
fancy-buttons (~> 0.5.1)
geoip
goalie
haml (~> 3.0.13)
jnunemaker-validatable (~> 1.8.4)
+ launchy
magent (~> 0.4.2)
mongo
mongo_mapper (~> 0.8.2)
@@ -181,6 +257,8 @@ DEPENDENCIES
rails (~> 3.0.0)
rdiscount (~> 1.6.3.1)
responders
+ rspec
+ rspec-rails (~> 2.0.0)
ruby-debug
ruby-openid
ruby-prof
View
@@ -0,0 +1,2 @@
+Autotest.add_discovery { "rails" }
+Autotest.add_discovery { "rspec2" }
@@ -0,0 +1,8 @@
+Feature: Landing page
+ In order to see what this app is about
+ as a logged-out user
+ I want to be able to see the landing page
+
+ Scenario: Visiting the site for the first time
+ Given I am on the home page
+ Then I should see "Fazer cadastro"
Oops, something went wrong.

0 comments on commit 730d069

Please sign in to comment.