File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -243,9 +243,9 @@ def app; subject end
243243 end
244244 end
245245
246- describe "#redirect" do
247- it "should redirect to a url with status 302" do
248- subject . get ( '/hey' ) do
246+ describe "#redirect" do
247+ it "should redirect to a url with status 302" do
248+ subject . get ( '/hey' ) do
249249 redirect "/ha"
250250 end
251251 get '/hey'
@@ -255,16 +255,16 @@ def app; subject end
255255 end
256256
257257 it "should have status code 303 if it is not get request and it is http 1.1" do
258- subject . post ( '/hey' ) do
258+ subject . post ( '/hey' ) do
259259 redirect "/ha"
260260 end
261261 post '/hey' , { } , 'HTTP_VERSION' => 'HTTP/1.1'
262262 last_response . status . should eq 303
263263 last_response . headers [ 'Location' ] . should eq "/ha"
264264 end
265265
266- it "support permanent redirect" do
267- subject . get ( '/hey' ) do
266+ it "support permanent redirect" do
267+ subject . get ( '/hey' ) do
268268 redirect "/ha" , :permanent => true
269269 end
270270 get '/hey'
@@ -409,7 +409,7 @@ def memoized
409409 verb
410410 end
411411 send ( verb , '/example/and/some/more' )
412- last_response . status . should eql ( verb == "post" ? 201 : 200 )
412+ last_response . status . should eql verb == "post" ? 201 : 200
413413 last_response . body . should eql verb == 'head' ? '' : verb
414414 end
415415 end
You can’t perform that action at this time.
0 commit comments