RSpec From Scratch, Part 1 (How to Write a Test)
12-Jun-2019 1534
Testing can be intimidating, especially for beginners, but it really doesn't have to be that way. With a little practice, writing tests is actually fun. So let's learn RSpec from the ground up and give this testing thing a try. We'll start from scratch and learn how to write a test while solving a basic Codewars challenge using Test Driven Development (TDD). Keep in mind as we do this that the file structure I'm using is overkill for the task of solving a simple code challenge. It is, however, the way you would do it for a larger project, so I'm teaching it this way on purpose so you understand how to properly install, set up, and use RSpec.
RSpec From Scratch, Part 1 (How to Write a Test) #ruby #rubydeveloper #rubyonrails #RSpec #Scratch, #Write #Test) #rspec #test) https://rubyonrails.ba/link/rspec-from-scratch-part-1-how-to-write-a-test