Permalink
Browse files

Merge pull request #2 from DoppioJP/master

Fixed the cars step
  • Loading branch information...
2 parents 0247be1 + c054141 commit 9f62aa7d3b111d57cf09874a6cf33bcab54c08be @PjpG committed Jun 20, 2012
Showing with 8 additions and 3 deletions.
  1. +1 −0 Gemfile
  2. +5 −2 Gemfile.lock
  3. +2 −1 features/step_definitions/car_steps.rb
View
@@ -11,6 +11,7 @@ group :test do
gem 'cucumber'
gem 'cucumber-rails'
gem 'capybara'
+ gem 'capybara-screenshot'
gem 'rspec'
gem 'rspec-rails'
gem 'database_cleaner'
View
@@ -38,6 +38,8 @@ GEM
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
+ capybara-screenshot (0.1.10)
+ capybara (>= 1.0)
childprocess (0.3.2)
ffi (~> 1.0.6)
coffee-rails (3.2.2)
@@ -68,7 +70,7 @@ GEM
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.2)
- railties (>= 3.2.0, < 5.0)
+ railties (< 5.0, >= 3.2.0)
thor (~> 0.14)
json (1.7.3)
libwebsocket (0.1.3)
@@ -134,7 +136,7 @@ GEM
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
- tilt (~> 1.1, != 1.3.0)
+ tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.6)
thor (0.14.6)
tilt (1.3.3)
@@ -153,6 +155,7 @@ PLATFORMS
DEPENDENCIES
capybara
+ capybara-screenshot
coffee-rails (~> 3.2.1)
cucumber
cucumber-rails
@@ -19,9 +19,10 @@
end
Given /^I am on (.+)$/ do |cars|
- cars
+ visit cars_path
end
When /^I follow "(.*?)"$/ do |link|
+ # screen_shot_and_save_page
click_link(link)
end

0 comments on commit 9f62aa7

Please sign in to comment.