{"push_id":1061141574,"size":1,"distinct_size":1,"ref":"refs/heads/chapter_06","head":"9d512470919bcdf1fea6b9138548c8283857389c","before":"58dd0ef8e7841c90c5fab8c8df6d8a820eb4355a","commits":[{"sha":"9d512470919bcdf1fea6b9138548c8283857389c","author":{"email":"1acf49b16841c14032b46546498ad1a531d47d0f@gmail.com","name":"Jerry Hilts"},"message":"Creating \"Customer Search\" feature spec\n\n* Feature: \"Customer Search:\"\n  * Set-up\n    * Load db with Faker test data\n    * Setup login user data\n    * Create specific named Customers\n    * Visit `/customers` page\n    * Login\n  * Scenario: \"Search by Name\"\n    * Fill in Keywords\n    * Check search results\n      * Expect: content\n      * Expect: 4 results in list\n      * Expect: Matches for specific customers\n* Added `ng-if` directive to `.search_results` section in Customers Index view. This will remove the element from the DOM while it's empty, so our Capybara test will wait for the content to be returned from the server before trying its expectations.\n* Ran spec: _Passed_\n\nNote: Rather than robotically type the spec as written in the book, used\ndifferent test data, that would change the expectations slighty. Also,\nonce again, I altered the data to ensure the test fails when the values\nare incorrect, then reset them.","distinct":true,"url":"https://api.github.com/repos/gwhilts/shine/commits/9d512470919bcdf1fea6b9138548c8283857389c"}]}