9.3 [Remember me] のテスト 動作をテストで確認できるようにしておくことが重要です!! →ユーザーを永続化するコードのメイン部分は未だ全くテストされていないのであった 9.3.1 [Remember me] ボックスをテストする log_in_asヘルパーメソッドを定義 ユーザーが記憶されるためにはログインが必要なので テスト内でユーザーがログインできるようにするためのする →単体テスト・統合テストそれぞれで使えるように定義していく ・ ・ ・ class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all include ApplicationHelper # Add more helpe
![らくだ🐫にもできるRailsチュートリアル|9.3(と9.4)](https://cdn-ak-scissors.b.st-hatena.com/image/square/55d9659bbad76e5c991b6004846602e6175c3568/height=288;version=1;width=512/https%3A%2F%2Frakuda3desu.net%2Fwp-content%2Fuploads%2F2019%2F05%2Frakudatorial.png)