Tag: rails
-
Rails + Webpack + Webpack-Manifest + React + Babel 7 + HMR – [chunkHash]
I’m writing this quick one up so you can save the 1.5 hours that I spent debugging this. Terms :HMR – HotModelReload – webpack-dev-server option to trigger browser-auto-refresh when webpack detects filechange (and re-compiles) Here’s what I’m using : Rails 5.2 Webpack-Manifest Gem Yarn Webpack (-cli) Webpack-dev-server @babel/core @babel/preset-react The issue : When running webpack-dev-server…
-
BDD/TDD test cycle for beginners
I sent this message to a RailsMentor Protege of mine : A couple notes on BDD testing : 1. Never test “the glue”. “Glue” means anything that Ruby or Rails should be doing “automatically”. That means, database querying, sending values from controller to view, etc. So, in a view test, you should be able to…