Skip to content
This repository
Browse code

ruby-1.9.2: update paths in features to account for the fact that rub…

…y-1.9.2 removes '.' from the
  • Loading branch information...
commit aff91516a53a8c4f7f96a436b6037dbb78896bd2 1 parent d4cc56c
David Chelimsky authored May 26, 2010
2  features/expectations/customized_message.feature
@@ -45,7 +45,7 @@ Feature: customized message
45 45
       end
46 46
 
47 47
       """
48  
-    When I run "rspec node_spec.rb --format documentation"
  48
+    When I run "rspec ./node_spec.rb --format documentation"
49 49
     Then I should see "3 examples, 3 failures"
50 50
     And  I should not see "to return true, got false"
51 51
     And  I should not see "to return false, got true"
4  features/expectations/implicit_docstrings.feature
@@ -18,7 +18,7 @@ Feature: implicit docstrings
18 18
     end
19 19
     """
20 20
 
21  
-    When I run "rspec implicit_docstrings_spec.rb -fdoc"
  21
+    When I run "rspec ./implicit_docstrings_spec.rb -fdoc"
22 22
 
23 23
     Then I should see "should be < 5"
24 24
     And I should see "should include 2"
@@ -44,7 +44,7 @@ Feature: implicit docstrings
44 44
     end
45 45
     """
46 46
 
47  
-    When I run "rspec failing_implicit_docstrings_spec.rb -fdoc"
  47
+    When I run "rspec ./failing_implicit_docstrings_spec.rb -fdoc"
48 48
 
49 49
     Then I should see "should equal 2"
50 50
     And I should see "should be > 5"
4  features/matchers/access_running_example.feature
@@ -28,7 +28,7 @@ Feature: access running example
28 28
         end
29 29
       end
30 30
       """
31  
-    When I run "rspec example_spec.rb"
  31
+    When I run "rspec ./example_spec.rb"
32 32
     Then I should see "1 example, 0 failures"
33 33
 
34 34
   Scenario: call method _not_ defined on example from matcher
@@ -46,7 +46,7 @@ Feature: access running example
46 46
         end
47 47
       end
48 48
       """
49  
-    When I run "rspec example_spec.rb"
  49
+    When I run "rspec ./example_spec.rb"
50 50
     Then I should see "1 example, 1 failure"
51 51
     And I should see "undefined local variable"
52 52
     And I should see "RSpec::Matchers::Matcher"
2  features/matchers/define_diffable_matcher.feature
@@ -20,7 +20,7 @@ Feature: define diffable matcher
20 20
         it {should be_just_like("that")}
21 21
       end
22 22
       """
23  
-    When I run "rspec diffable_matcher_spec.rb --diff"
  23
+    When I run "rspec ./diffable_matcher_spec.rb --diff"
24 24
     Then the exit status should not be 0
25 25
 
26 26
     And I should see "should be just like that"
14  features/matchers/define_matcher.feature
@@ -34,7 +34,7 @@ Feature: define matcher
34 34
       end
35 35
 
36 36
       """
37  
-    When I run "rspec matcher_with_default_message_spec.rb --format documentation"
  37
+    When I run "rspec ./matcher_with_default_message_spec.rb --format documentation"
38 38
     Then the exit status should not be 0
39 39
 
40 40
     And I should see "should be a multiple of 3"
@@ -65,7 +65,7 @@ Feature: define matcher
65 65
         it {should be_a_multiple_of(4)}
66 66
       end
67 67
       """
68  
-    When I run "rspec matcher_with_failure_message_spec.rb"
  68
+    When I run "rspec ./matcher_with_failure_message_spec.rb"
69 69
     Then the exit status should not be 0
70 70
     And the stdout should contain "1 example, 1 failure"
71 71
     And the stdout should contain "expected that 9 would be a multiple of 4"
@@ -89,7 +89,7 @@ Feature: define matcher
89 89
         it {should_not be_a_multiple_of(3)}
90 90
       end
91 91
       """
92  
-    When I run "rspec matcher_with_failure_for_message_spec.rb"
  92
+    When I run "rspec ./matcher_with_failure_for_message_spec.rb"
93 93
     Then the exit status should not be 0
94 94
     And the stdout should contain "1 example, 1 failure"
95 95
     And the stdout should contain "expected that 9 would not be a multiple of 3"
@@ -116,7 +116,7 @@ Feature: define matcher
116 116
         it {should_not be_a_multiple_of(4)}
117 117
       end
118 118
       """
119  
-    When I run "rspec matcher_overriding_description_spec.rb --format documentation"
  119
+    When I run "rspec ./matcher_overriding_description_spec.rb --format documentation"
120 120
     Then the exit status should be 0
121 121
     And the stdout should contain "2 examples, 0 failures"
122 122
     And the stdout should contain "should be multiple of 3"
@@ -141,7 +141,7 @@ Feature: define matcher
141 141
         it {should have_7_fingers}
142 142
       end
143 143
       """
144  
-    When I run "rspec matcher_with_no_args_spec.rb --format documentation"
  144
+    When I run "rspec ./matcher_with_no_args_spec.rb --format documentation"
145 145
     Then the exit status should be 0
146 146
     And the stdout should contain "1 example, 0 failures"
147 147
     And the stdout should contain "should have 7 fingers"
@@ -161,7 +161,7 @@ Feature: define matcher
161 161
         it {should be_the_sum_of(1,2,3,4)}
162 162
       end
163 163
       """
164  
-    When I run "rspec matcher_with_multiple_args_spec.rb --format documentation"
  164
+    When I run "rspec ./matcher_with_multiple_args_spec.rb --format documentation"
165 165
     Then the exit status should be 0
166 166
     And the stdout should contain "1 example, 0 failures"
167 167
     And the stdout should contain "should be the sum of 1, 2, 3, and 4"
@@ -187,7 +187,7 @@ Feature: define matcher
187 187
         end
188 188
       end
189 189
       """
190  
-    When I run "rspec matcher_with_internal_helper_spec.rb"
  190
+    When I run "rspec ./matcher_with_internal_helper_spec.rb"
191 191
     Then the exit status should be 0
192 192
     And the stdout should contain "1 example, 0 failures"
193 193
 
2  features/matchers/define_matcher_with_fluent_interface.feature
@@ -22,6 +22,6 @@ Feature: define matcher
22 22
         it { should be_bigger_than(4).but_smaller_than(6) }
23 23
       end
24 24
       """
25  
-    When I run "rspec between_spec.rb --format documentation"
  25
+    When I run "rspec ./between_spec.rb --format documentation"
26 26
     Then I should see "1 example, 0 failures"
27 27
     And  I should see "should be bigger than 4"
4  features/matchers/expect_change.feature
@@ -29,7 +29,7 @@ Feature: expect change
29 29
         end
30 30
       end
31 31
       """
32  
-    When I run "rspec expect_change_spec.rb"
  32
+    When I run "rspec ./expect_change_spec.rb"
33 33
     Then I should see "2 examples, 1 failure"
34 34
     Then I should see "should have been changed by 2, but was changed by 1"
35 35
 
@@ -60,6 +60,6 @@ Feature: expect change
60 60
         end
61 61
       end
62 62
       """
63  
-    When I run "rspec expect_no_change_spec.rb"
  63
+    When I run "rspec ./expect_no_change_spec.rb"
64 64
     Then I should see "2 examples, 1 failure"
65 65
     Then I should see "should not have changed, but did change from 1 to 2"
4  features/matchers/expect_error.feature
@@ -18,7 +18,7 @@ Feature: expect error
18 18
         end
19 19
       end
20 20
       """
21  
-    When I run "rspec expect_error_spec.rb"
  21
+    When I run "rspec ./expect_error_spec.rb"
22 22
     Then I should see "2 examples, 1 failure"
23 23
     Then I should see "expected NameError but nothing was raised"
24 24
 
@@ -38,7 +38,7 @@ Feature: expect error
38 38
         end
39 39
       end
40 40
       """
41  
-    When I run "rspec expect_no_error_spec.rb"
  41
+    When I run "rspec ./expect_no_error_spec.rb"
42 42
     Then I should see "2 examples, 1 failure"
43 43
     Then I should see "undefined method `non_existent_message'"
44 44
 

0 notes on commit aff9151

Please sign in to comment.
Something went wrong with that request. Please try again.