Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mojolicious/mojo
base: 22c4140ecd34
Choose a base ref
...
head repository: mojolicious/mojo
compare: dd66d8450d10
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 10, 2016

  1. Update Routing.pod

    $t->post_ok('/blackjack')->status_code(200);
    
    The current "under" example in this guide, does not specify a specific status code.  So a test like this passes even though the "under" function failed which was not expected (could just be me).  I realize I could test the content of the failure but seems useful to check the status codes as well.
    
    I thought it might be useful to show how the failure of the "under" function could be used to return a different status code.  
    
    $t->get_ok('/blackjack')->status_code(401);
    $t->get_ok('/blackjack' => { 'X-Bender' => 1 })->status_code(200);
    bfaist committed Mar 10, 2016
    Copy the full SHA
    bf32e5f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #933 from bfaist/patch-2

    Update Routing.pod
    jberger committed Mar 10, 2016
    Copy the full SHA
    dd66d84 View commit details
    Browse the repository at this point in the history