Blog

Thoughts from my daily grind
Posted by Ziyan Junaideen 25 June 2023
Introduction to RSpec Request Specs and how you can use it in your Ruby on Rails application.
Posted by Ziyan Junaideen 15 April 2023
DRY your test code by generalizign repetitive tests in to RSpec shared examples.
Posted by Ziyan Junaideen 14 January 2023
Rswag is a useful tool when it comes to documenting an API that is both OpenAPI and Swagger compatible. Here we discuss how we can work around unsupported attributes like servers.
Posted by Ziyan Junaideen 18 May 2022
If you are testing RoR mailer views using RSpec and FFaker gem, you could randomly experience match failures. This post explains how you can use HTML escape to bring escape the name before matching.
Posted by Ziyan Junaideen 18 April 2020
Bring sanity to your code and avoid massive expectation pyramids by chaining multiple conditions inside a single `expect` block.