TWIL December 19th 2025
- If your Rails tests need access to cookies with the
secureattribute, you can make HTTPS requests in RSpec by using theurlvariant of path helpers and passingprotocol: :https - When using
expect_any_instance_ofin RSpec, you need the expectation before the thing that causes it to be fulfilled, not after - Passing everything as arguments makes testing much easier than having stuff implicitly available in the environment
Links
- The Size of Life - Neal
Not dev-related other than being a website, but it's a cool website.