Skip to content

Commit 33c14a2

Browse files
committed
limit cukes to rspec and rails APIs
1 parent 59793dc commit 33c14a2

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

features/support/env.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'aruba/cucumber'
2-
require 'webrat'
32

43
module ArubaExt
54
def run(cmd)

features/view_specs/view_spec.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Feature: view spec
1616
1717
render
1818
19-
rendered.should contain("slicer")
20-
rendered.should contain("dicer")
19+
rendered.should =~ /slicer/
20+
rendered.should =~ /dicer/
2121
end
2222
end
2323
"""
@@ -42,8 +42,8 @@ Feature: view spec
4242
it "displays both widgets" do
4343
render
4444
45-
rendered.should contain("slicer")
46-
rendered.should contain("dicer")
45+
rendered.should =~ /slicer/
46+
rendered.should =~ /dicer/
4747
end
4848
end
4949
end
@@ -62,7 +62,7 @@ Feature: view spec
6262
6363
render :template => "widgets/widget.html.erb"
6464
65-
rendered.should contain("slicer")
65+
rendered.should =~ /slicer/
6666
end
6767
end
6868
"""
@@ -84,7 +84,7 @@ Feature: view spec
8484
8585
render :partial => "widgets/widget.html.erb", :locals => {:widget => widget}
8686
87-
rendered.should contain("slicer")
87+
rendered.should =~ /slicer/
8888
end
8989
end
9090
"""
@@ -106,7 +106,7 @@ Feature: view spec
106106
107107
render "widgets/widget", :widget => widget
108108
109-
rendered.should contain("slicer")
109+
rendered.should =~ /slicer/
110110
end
111111
end
112112
"""
@@ -127,7 +127,7 @@ Feature: view spec
127127
128128
render :text => "This is directly rendered"
129129
130-
rendered.should contain("directly rendered")
130+
rendered.should =~ /directly rendered/
131131
end
132132
end
133133
"""
@@ -146,7 +146,7 @@ Feature: view spec
146146
page.hide 'status-indicator'
147147
end
148148
149-
rendered.should contain("Element.hide(\"status-indicator\")")
149+
rendered.should =~ /Element.hide\(\"status-indicator\"\);/
150150
end
151151
end
152152
"""
@@ -177,7 +177,7 @@ Feature: view spec
177177
178178
it 'checks for admin access' do
179179
render
180-
rendered.should contain('Secret admin area')
180+
rendered.should =~ /Secret admin area/
181181
end
182182
end
183183
"""

0 commit comments

Comments
 (0)