Test-Driven Development with RSpec in Rails

Written by red12003 | Published 2019/11/12
Tech Story Tags: ruby-on-rails | rails | ruby | test-driven-development | tdd | rspec | arrange-act-and-assert | hackernoon-top-story

TLDR RSpec is a testing tool written in Ruby and used to test Ruby on rails. It is the most frequently used testing library for Ruby in production applications. The AAA stands for “Arrange, Act and Assert” and it consists of the preparations to start testing like initializing or instantiating objects, setting up mocks and stubs, defining let variables using factories … etc. It works with the AAA structure that I previously explained: ‘Arrange’ and ‘Assert’via the TL;DR App

no story

Written by red12003 | Remote Software Engineer
Published by HackerNoon on 2019/11/12