Skip to content

Commit c830981

Browse files
garrensmithdchelimsky
authored andcommitted
replaced response with rendered in view features
1 parent 072286d commit c830981

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

features/view_specs/view_spec.feature

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Feature: view spec
1616
1717
render
1818
19-
response.should contain("slicer")
20-
response.should contain("dicer")
19+
rendered.should contain("slicer")
20+
rendered.should contain("dicer")
2121
end
2222
end
2323
"""
@@ -42,8 +42,8 @@ Feature: view spec
4242
it "displays both widgets" do
4343
render
4444
45-
response.should contain("slicer")
46-
response.should contain("dicer")
45+
rendered.should contain("slicer")
46+
rendered.should contain("dicer")
4747
end
4848
end
4949
end
@@ -62,7 +62,7 @@ Feature: view spec
6262
6363
render :template => "widgets/widget.html.erb"
6464
65-
response.should contain("slicer")
65+
rendered.should contain("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-
response.should contain("slicer")
87+
rendered.should contain("slicer")
8888
end
8989
end
9090
"""
@@ -106,7 +106,7 @@ Feature: view spec
106106
107107
render "widgets/widget", :widget => widget
108108
109-
response.should contain("slicer")
109+
rendered.should contain("slicer")
110110
end
111111
end
112112
"""
@@ -127,7 +127,7 @@ Feature: view spec
127127
128128
render :text => "This is directly rendered"
129129
130-
response.should contain("directly rendered")
130+
rendered.should contain("directly rendered")
131131
end
132132
end
133133
"""
@@ -146,7 +146,7 @@ Feature: view spec
146146
page.hide 'status-indicator'
147147
end
148148
149-
response.should contain("Element.hide(\"status-indicator\")")
149+
rendered.should contain("Element.hide(\"status-indicator\")")
150150
end
151151
end
152152
"""

0 commit comments

Comments
 (0)