ruby

Rspec and BDD

March 1, 2024
development
ruby, rspec, bdd

Context # In my latest job, after several years of working with Ruby on Rails, I had the opportunity to switch to a Python project for a few months. It was my first substantial and professional experience with Python, and one of the initial distinctions I encountered was in the testing framework. After working with RSpec for a while, I suddenly found myself face-to-face with Pytest. Initially, it felt unfamiliar, and I struggled to conceptualize and organize my tests. ...

How to add ActiveAdmin to Rails API only application

January 21, 2024
development
ruby, rails, activeadmin

How to add ActiveAdmin to Rails API only application # Recently at work, I was tasked with creating a back office for our application. We decided to opt for a ready-made solution. The top contender was ActiveAdmin, but I also briefly explored other options such as RailsAdmin and Administrate. In the end, ActiveAdmin was ultimately chosen, primarily due to its superior customizability among the three options, which was crucial for our needs. ...