NPNolan Phillipsinblog.nolanphillips.com·Jun 22, 2022 · 2 min readCan we make a grammar for our design system?As the only person building HeartPayroll I find myself needing to wear two hats: developer and designer. This is fun, but it means I don't have a lot of time to really think about the visual design of the application. Instead, I've spent a little tim...00
NPNolan Phillipsinblog.nolanphillips.com·May 13, 2022 · 2 min readHow to Mock ActionMailerThe Rails ActionMailer is a pretty useful tool. Unfortunately, it's extremely awkward to mock for tests. Since these emails are critical to our business I spent some time looking at how to write clean test to make sure my mailers are called when the...01S
NPNolan Phillipsinblog.nolanphillips.com·May 10, 2022 · 4 min readTesting for ChangeWriting tests that check that a value you don't control has changed is a weird thing. To help out, RSpec provides a change matcher that can help make things easier. Let's look at an example of how we can use the change matcher to create more robust ...00
NPNolan Phillipsinblog.nolanphillips.com·May 3, 2022 · 3 min readAn Introduction to Contract Testing in RailsAfter years of listening to J.B. Rainsberger tell me Contract tests are great, I finally started listening. I always assumed they were confusing or hard for some reason. Turns out I was really wrong. To help you along I've written this short tutoria...00
NPNolan Phillipsinblog.nolanphillips.com·Apr 13, 2022 · 3 min readTesting GraphQL in RailsGoals When we set out to test our GraphQL API we wanted 3 things: To write GQL queries as a string To keep network details out of spec files To keep GQL queries out of individual tests Assumptions: This article assumes you have a working Rails app...00