Prabin Poudelblog.zeroconfigrails.com·Oct 5, 2024Setup RSpec Tests in Rails with Gitlab CIAt Zero Config Rails, I (Prabin) am constantly working on automating configurations and boring setups like “Setup RSpec Tests in Rails with Gitlab CI”. CI integrations helps in improving the code quality in projects. It can help in automating code re...Rails
Allan Coderallanicode.hashnode.dev·May 3, 2024Getting Started with RSpec testing in RubyRSpec is a test framework for ruby that has grown in popularity and for good reason. Users of Ruby have an option of picking an equally capable framework called minitest that ships with rails by default. So why pick Rspec: It reads like plain Englis...271 readsRuby
Ícaro Leonicaroleon.hashnode.dev·Oct 16, 2023Movies APITecnologias Empregadas: Ruby 3.0.4 Rails 6.1.7.3 PostgreSQL 12.14 Ubuntu 20.04 Gems: kaminari pg_search Descrição: Desafio realizado para uma oportunidade backend. O teste consistiu em criar uma API de serviço do catálogo de filmes com doi...30 readsProjetosRuby on Rails
Mateusz Białowąsmateuszbialowas.com·Oct 14, 2023Utilizing RSpec Matchers for Order-Insensitive Array ComparisonsIntroduction Ensuring stability and consistency in tests is very important. One key aspect of testing is the ability to avoid flaky tests, which are tests that do not pass each time they are run. Navigating Through Flaky Tests Sometimes, the ordering...71 readsRuby
Binary Planetbinaryplanet.hashnode.dev·Aug 29, 2023Demystifying RSpec Shared Examples and Shared Contexts — Part 1Introduction RSpec is a powerful testing framework for Ruby that makes testing your code a breeze. But what if you find yourself writing similar test cases again and again? Enter RSpec shared examples and shared contexts! These nifty features allow y...69 readsRuby
Alexandre Calaçablog.alexandrecalaca.com·Jul 27, 2023How to create Rspec tests for your LeetCode solutions in Ruby?Topic How to create Rspec tests for your LeetCode solution problem in Ruby? Requirements Make sure your LeetCode solution is correct before writing the RSpec tests. The tests will verify that your solution behaves as expected for the provided test c...1 likeRuby
Josh McLeodjoshmcleod.hashnode.dev·Jun 27, 2023External Read-Only Database Setup in RSpecIf you have a Rails application that connects to an external, read-only database, there are a few ways to wire things up in the test suite. In my scenario, I needed some data seeded into that external database to adequately test the flow of my applic...1 like·363 readsRuby
Kevin Gathukukevgathuku.dev·Jun 20, 20233 mistakes to avoid in your rspec testsrspec is an amazing testing tool for Ruby and Rails apps. I have used it in most of the projects I’ve worked on for a long time. Despite this, I am still prone to make mistakes, so I’ll keep a log of some of them here for future reference Failing to ...42 readsRails
Shubham Dangwalshubhamdangwal.hashnode.dev·May 2, 2023Testing RabbitMQ-Powered Services: Writing RSpec Test CasesWhat is RabbitMQ? RabbitMQ is an open-source message broker software that allows applications to communicate with each other by exchanging messages. It acts as a mediator between different applications and services, enabling them to pass messages bet...294 readsrabbitmq
Mateusz Białowąsmateuszbialowas.com·Apr 23, 2023Testing Sidekiq in Ruby on Rails: A Comprehensive GuideIntroduction Sidekiq is a powerful tool for handling asynchronous jobs in Ruby. It can be easily integrated with Ruby on Rails applications to streamline background tasks. With Ruby on Rails, there are two main options for using Sidekiq: Integrate S...4.1K readsTesting