From d32ddba929346a3d4483ccd6d8e69c1df442f8e8 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Mon, 9 Oct 2017 11:21:47 +0300 Subject: [PATCH] Fix misprint: 'vendir' -> 'vendor' --- knpu/episode1/debugging-tests.rst | 4 ++-- knpu/episode1/different-representations.rst | 2 +- knpu/episode1/put-editing.rst | 4 ++-- knpu/episode1/put-improvements.rst | 2 +- knpu/episode1/testing-data.rst | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/knpu/episode1/debugging-tests.rst b/knpu/episode1/debugging-tests.rst index 4abb2758..b6e2c0b8 100644 --- a/knpu/episode1/debugging-tests.rst +++ b/knpu/episode1/debugging-tests.rst @@ -26,7 +26,7 @@ Now run the test again: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat Not surprisingly, we're getting a 500 error instead of 200. But we can't really see what's going on because we can't see the big error page! @@ -70,7 +70,7 @@ Now just re-run the test: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat It may be ugly, but the entire response of the last request our test made is printed out, including all the header information on top. Once you've diff --git a/knpu/episode1/different-representations.rst b/knpu/episode1/different-representations.rst index 9cb6cf1e..2f935121 100644 --- a/knpu/episode1/different-representations.rst +++ b/knpu/episode1/different-representations.rst @@ -75,7 +75,7 @@ Now run the test: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat Perfect! We've decided just to ignore these "extra" properties. You could also decide to return an error response instead. It just depends on your diff --git a/knpu/episode1/put-editing.rst b/knpu/episode1/put-editing.rst index f2251683..3454be28 100644 --- a/knpu/episode1/put-editing.rst +++ b/knpu/episode1/put-editing.rst @@ -77,7 +77,7 @@ We haven't actually coded this yet, so when we run the test, it fails: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat The test reports that the status code isn't 200, it's 405. 405 means "method not allowed", and our framework is doing this for us. It's a way of saying @@ -163,7 +163,7 @@ Time to run the test! .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat Woot! It passes! And we can even run it over and over again. diff --git a/knpu/episode1/put-improvements.rst b/knpu/episode1/put-improvements.rst index 608a1697..81c157c9 100644 --- a/knpu/episode1/put-improvements.rst +++ b/knpu/episode1/put-improvements.rst @@ -53,7 +53,7 @@ Re-run the tests to see if we broke anything: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat Cool! I'm going to change how this code is written *just* a little bit so that it's even more dynamic:: diff --git a/knpu/episode1/testing-data.rst b/knpu/episode1/testing-data.rst index 7d3d858a..f2c55eea 100644 --- a/knpu/episode1/testing-data.rst +++ b/knpu/episode1/testing-data.rst @@ -5,7 +5,7 @@ Let's run our test a second time: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat It fails! The nickname of a programmer is unique in the database, and if you look closely, this fails because the API tries to insert another ``ObjectOrienter`` @@ -46,7 +46,7 @@ Try the test again: .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat Dang, it failed again. Ah, remember how we're relating all programmers to the ``weaverryan`` user? Well, when we empty the tables before the scenario, @@ -70,7 +70,7 @@ are executed before each ``Scenario``. Ok, try it one more time! .. code-block:: bash - $ php vendir/bin/behat + $ php vendor/bin/behat Success! When you test, it's critical to make sure that your database is in a predictable state before each test. Don't assume that a user exists @@ -116,7 +116,7 @@ is important, just like in the previous scenario. Run it! - $ php vendir/bin/behat + $ php vendor/bin/behat Success!