Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed the cars step #2

Merged
merged 1 commit into from almost 2 years ago

2 participants

DoppioJP
DoppioJP

It now visits the cars_path page to see if there is new link.

PjpG merged commit 9f62aa7 into from June 20, 2012
PjpG closed this June 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 20, 2012
DoppioJP Fixed cars_steps to visit the list of cars page. Added cucumber-scree…
…nshot gem
c054141
This page is out of date. Refresh to see the latest.
1  Gemfile
@@ -11,6 +11,7 @@ group :test do
11 11
   gem 'cucumber'
12 12
   gem 'cucumber-rails'
13 13
   gem 'capybara'
  14
+  gem 'capybara-screenshot'
14 15
   gem 'rspec'
15 16
   gem 'rspec-rails'
16 17
   gem 'database_cleaner'
7  Gemfile.lock
@@ -38,6 +38,8 @@ GEM
38 38
       rack-test (>= 0.5.4)
39 39
       selenium-webdriver (~> 2.0)
40 40
       xpath (~> 0.1.4)
  41
+    capybara-screenshot (0.1.10)
  42
+      capybara (>= 1.0)
41 43
     childprocess (0.3.2)
42 44
       ffi (~> 1.0.6)
43 45
     coffee-rails (3.2.2)
@@ -68,7 +70,7 @@ GEM
68 70
     i18n (0.6.0)
69 71
     journey (1.0.3)
70 72
     jquery-rails (2.0.2)
71  
-      railties (>= 3.2.0, < 5.0)
  73
+      railties (< 5.0, >= 3.2.0)
72 74
       thor (~> 0.14)
73 75
     json (1.7.3)
74 76
     libwebsocket (0.1.3)
@@ -134,7 +136,7 @@ GEM
134 136
     sprockets (2.1.3)
135 137
       hike (~> 1.2)
136 138
       rack (~> 1.0)
137  
-      tilt (~> 1.1, != 1.3.0)
  139
+      tilt (!= 1.3.0, ~> 1.1)
138 140
     sqlite3 (1.3.6)
139 141
     thor (0.14.6)
140 142
     tilt (1.3.3)
@@ -153,6 +155,7 @@ PLATFORMS
153 155
 
154 156
 DEPENDENCIES
155 157
   capybara
  158
+  capybara-screenshot
156 159
   coffee-rails (~> 3.2.1)
157 160
   cucumber
158 161
   cucumber-rails
2  app/views/cars/index.html.erb
@@ -2,4 +2,4 @@
2 2
   <%= car.title %>
3 3
 <% end %>
4 4
 <br />
5  
-<!-- # <%= link_to "new", new_car_path %> -->
  5
+<%= link_to "new", new_car_path %>
3  features/step_definitions/car_steps.rb
@@ -19,9 +19,10 @@
19 19
 end
20 20
 
21 21
 Given /^I am on (.+)$/ do |cars|
22  
-  cars
  22
+  visit cars_path
23 23
 end
24 24
 
25 25
 When /^I follow "(.*?)"$/ do |link|
  26
+  # screen_shot_and_save_page
26 27
   click_link(link)
27 28
 end
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.