© 2023 Hashnode
#rspec
Let's finish the Todo object. Only a few steps away. Here is what we will focus on in part 3: Apply CI to this project with CircleCI Complete README.md Push it to GitHub CircleCI CircleCi is a p…
There was a recent Twitter storm around the subject of TDD. I have wanted to write about my journey with TDD for a while. This Twitter is as good an excuse as any. And probably, this article will appe…
TL;DR If you struggle with maintaining brittle capybara tests that mix high-level verifications with low-level CSS selectors, you should consider using SitePrism, a semantic DSL for describing your web application. You'll never have to har…
This is part 3 (the last) in this series. Introduction: In part 2, this was achieved; Scanning of each of the items, A, B, C, and D was done The corresponding test was written for each In part 3, th…
How do you capture multiple lines of console output in Ruby? Here is one way to do it. This example comes from writing a test for multiple lines of output from a command-line tic-tac-toe game, where t…
Test-driven development (TDD) is the thing that'll save you from having to go through troves of code, some of which you most likely didn't write to find the bug. Sometimes you, or more likely your stu…
This is part 2 of a planned 3 part series Introduction: In part 1, this was achieved; Initialising project Writing a test for when nothing has been scanned In part 2, this is going to be handled; S…
This is part 1 of a planned 3 part series. Introduction: The challenge was to implement the code for a checkout system that handles pricing schemes such as “apples cost 50 cents, three apples cost $1.…