Skip to content
This repository
Browse code

limit cukes to rspec and rails APIs

  • Loading branch information...
commit 33c14a23fef050d05a43056c19009719cfc78f91 1 parent 59793dc
David Chelimsky authored April 25, 2011
1  features/support/env.rb
... ...
@@ -1,5 +1,4 @@
1 1
 require 'aruba/cucumber'
2  
-require 'webrat'
3 2
 
4 3
 module ArubaExt
5 4
   def run(cmd)
20  features/view_specs/view_spec.feature
@@ -16,8 +16,8 @@ Feature: view spec
16 16
 
17 17
           render
18 18
 
19  
-          rendered.should contain("slicer")
20  
-          rendered.should contain("dicer")
  19
+          rendered.should =~ /slicer/
  20
+          rendered.should =~ /dicer/
21 21
         end
22 22
       end
23 23
       """
@@ -42,8 +42,8 @@ Feature: view spec
42 42
           it "displays both widgets" do
43 43
             render
44 44
 
45  
-            rendered.should contain("slicer")
46  
-            rendered.should contain("dicer")
  45
+            rendered.should =~ /slicer/
  46
+            rendered.should =~ /dicer/
47 47
           end
48 48
         end
49 49
       end
@@ -62,7 +62,7 @@ Feature: view spec
62 62
 
63 63
           render :template => "widgets/widget.html.erb"
64 64
 
65  
-          rendered.should contain("slicer")
  65
+          rendered.should =~ /slicer/
66 66
         end
67 67
       end
68 68
       """
@@ -84,7 +84,7 @@ Feature: view spec
84 84
 
85 85
           render :partial => "widgets/widget.html.erb", :locals => {:widget => widget}
86 86
 
87  
-          rendered.should contain("slicer")
  87
+          rendered.should =~ /slicer/
88 88
         end
89 89
       end
90 90
       """
@@ -106,7 +106,7 @@ Feature: view spec
106 106
 
107 107
           render "widgets/widget", :widget => widget
108 108
 
109  
-          rendered.should contain("slicer")
  109
+          rendered.should =~ /slicer/
110 110
         end
111 111
       end
112 112
       """
@@ -127,7 +127,7 @@ Feature: view spec
127 127
 
128 128
           render :text => "This is directly rendered"
129 129
 
130  
-          rendered.should contain("directly rendered")
  130
+          rendered.should =~ /directly rendered/
131 131
         end
132 132
       end
133 133
       """
@@ -146,7 +146,7 @@ Feature: view spec
146 146
             page.hide 'status-indicator'
147 147
           end
148 148
 
149  
-          rendered.should contain("Element.hide(\"status-indicator\")")
  149
+          rendered.should =~ /Element.hide\(\"status-indicator\"\);/
150 150
         end
151 151
       end
152 152
       """
@@ -177,7 +177,7 @@ Feature: view spec
177 177
 
178 178
         it 'checks for admin access' do
179 179
           render
180  
-          rendered.should contain('Secret admin area')
  180
+          rendered.should =~ /Secret admin area/
181 181
         end
182 182
       end
183 183
       """

0 notes on commit 33c14a2

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