rspec

A collection of 4 posts
RSpec Rails Controller Test
ruby on rails

RSpec Rails Controller Test

Rails is a web development framework, where model, view and controller are important aspects of your application. Controllers, just like models and viewers, need to be tested with Ruby's community favorite tool, RSpec. Controllers in Rails accept HTTP requests as their input and deliver back and HTTP response as an
6 min read
Rails Capybara Setup
ruby on rails

Rails Capybara Setup

Capybara is a web-based automation framework tool for testing Rails apps. It helps you create functional tests that simulate how users would interact with your application through the browser. It is a fantastic tool for testing your application through the browser! Capybara doesn't interact with the website, it's just a
4 min read
Rails RSpec Setup
ruby on rails

Rails RSpec Setup

RSpec is an awesome tool for testing Rails apps. It is a hugely popular BDD-oriented (Behavior Driven Development) testing framework in the Ruby community. It makes writing tests simpler, more expressive and easier to maintain! Getting started First, you'll need to install RSpec but you’ll also need Database Cleaner
3 min read
RSpec Let Vs Before
ruby on rails

RSpec Let Vs Before

In RSpec, there are two different ways to write DRY tests, by using before or let. Their purpose is to create variables that are common across tests. In this post, we will explore differences between before and let and explain why let is preferred by the Ruby community. let Let
3 min read
Page 1 of 1