Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit df000dba8c819fbfc188071e7c5a37cec1e97b44 @searls committed Jan 20, 2011
Showing with 89 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +5 −0 Gemfile
  3. +61 −0 Gemfile.lock
  4. +7 −0 features/google.feature
  5. +11 −0 features/step_definitions/google_steps.rb
  6. +1 −0 features/support/env.rb
  7. +2 −0 features/support/hooks.rb
@@ -0,0 +1,2 @@
+.DS_Store
+.bundle
@@ -0,0 +1,5 @@
+source :rubygems
+
+gem 'cucumber', '>= 0.10.0'
+gem 'capybara', '>= 0.4.0'
+gem 'rspec', '>= 2.4.0'
@@ -0,0 +1,61 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ builder (3.0.0)
+ 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)
+ celerity (0.8.7)
+ childprocess (0.1.6)
+ ffi (~> 0.6.3)
+ cucumber (0.10.0)
+ builder (>= 2.1.2)
+ diff-lcs (~> 1.1.2)
+ gherkin (~> 2.3.2)
+ json (~> 1.4.6)
+ term-ansicolor (~> 1.0.5)
+ culerity (0.2.14)
+ diff-lcs (1.1.2)
+ ffi (0.6.3)
+ rake (>= 0.8.7)
+ gherkin (2.3.3)
+ json (~> 1.4.6)
+ json (1.4.6)
+ json_pure (1.4.6)
+ mime-types (1.16)
+ nokogiri (1.4.4)
+ rack (1.2.1)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rake (0.8.7)
+ rspec (2.4.0)
+ rspec-core (~> 2.4.0)
+ rspec-expectations (~> 2.4.0)
+ rspec-mocks (~> 2.4.0)
+ rspec-core (2.4.0)
+ rspec-expectations (2.4.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.4.0)
+ rubyzip (0.9.4)
+ selenium-webdriver (0.1.2)
+ childprocess (~> 0.1.5)
+ ffi (~> 0.6.3)
+ json_pure
+ rubyzip
+ term-ansicolor (1.0.5)
+ xpath (0.1.3)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ capybara (>= 0.4.0)
+ cucumber (>= 0.10.0)
+ rspec (>= 2.4.0)
@@ -0,0 +1,7 @@
+Feature: Using Google
+
+Scenario: Searching for a term
+
+Given I am on google.com
+When I enter "pizza"
+Then I should see results
@@ -0,0 +1,11 @@
+Given /^I am on google\.com$/ do
+ visit('/')
+end
+
+When /^I enter "([^"]*)"$/ do |term|
+ fill_in('q',:with => term)
+end
+
+Then /^I should see results$/ do
+ page.should have_css('div#res li')
+end
@@ -0,0 +1 @@
+require 'capybara/cucumber'
@@ -0,0 +1,2 @@
+Capybara.app_host = "http://google.com"
+Capybara.default_driver = :selenium

0 comments on commit df000db

Please sign in to comment.