Hi everyone! I currently am in the process of releasing my first ever Ruby gem (more on that later, wink wink), and while setting up
The article discusses an issue encountered while upgrading an API from Rails 6 to Rails 7, specifically regarding timestamp precision in request specs. It highlights how Rails truncates timestamps to milliseconds, causing test failures. The solution is to adjust the ActiveSupport::JSON::Encoding.time_precision setting to 6, ensuring accurate comparisons and functionality.
The author shares their positive experience with test-driven development (TDD) after a few months, noting improvements in code quality and simplicity. They demonstrate how to effectively test optional dependencies in Ruby using RSpec’s hide_const helper, which simplifies testing by temporarily removing constants. The post concludes with reflections on writing shorter articles.
Foreword Video game design is a topic that I have wanted to touch on for a very long time. In fact, this blog was once
Introduction OCaml is my language of heart. I don’t use it in my daily activities, it has a very small community and lacks a lot
RSpec is honestly the best testing framework I have ever worked with, and I dread the day I will to switch to a language that
Recently, I came across an interesting use-case for Git, and I thought it would be neat to make a little write-up about it, so here
With the shitstorm currently going on with Twitter, Mastodon is getting a lot of attention and gaining some traction. I already gave it a try
I had to solve an interesting performance issue today, so I thought I might as well document it for the posterity. It involved fixing an
Hey everybody! It’s good to be back. I remember having a blog back when I was a student and sharing whatever weird trick I found