File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spec/rspec/rails/matchers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -382,12 +382,12 @@ def create_response(opts = {})
382
382
it_behaves_like "supports different response instances" do
383
383
subject ( :matcher ) { have_redirect_status }
384
384
385
- let ( :code ) { 333 }
385
+ let ( :code ) { 308 }
386
386
end
387
387
388
388
describe "matching a response" do
389
389
it "returns true for a response with a 3xx status code" do
390
- any_3xx_code = 333
390
+ any_3xx_code = 308
391
391
response = create_response ( :status => any_3xx_code )
392
392
393
393
expect ( have_redirect_status . matches? ( response ) ) . to be ( true )
@@ -416,12 +416,12 @@ def create_response(opts = {})
416
416
end
417
417
418
418
it "has a negated failure message reporting the expected and actual status codes" do
419
- any_3xx_code = 333
419
+ any_3xx_code = 308
420
420
response = create_response ( :status => any_3xx_code )
421
421
422
422
expect { have_redirect_status . matches? response } .
423
423
to change ( have_redirect_status , :failure_message_when_negated ) .
424
- to ( /not to have a redirect status code \( 3xx\) but it was 333 / )
424
+ to ( /not to have a redirect status code \( 3xx\) but it was 308 / )
425
425
end
426
426
end
427
427
You can’t perform that action at this time.
0 commit comments