RSpec Testing Fundamentals for Ruby Developers

2 Weeks

·

Cohort-based Course

Learn to test Ruby apps effectively and confidently with a practical introduction to RSpec testing.

Course overview

Build your first engineering strategy

Becoming a technical leader or Chief Technical Officer (especially a de facto one) is not easy. Many challenges arise one after the other.

This course aims to prevent you from panicking or losing sight of what matters by giving you a base foundation you can build upon.

This is for

01

the junior Ruby developers looking to pick up a key skill

02

the experienced Ruby developers who wants to complete their toolbox

Key outcomes

Learn how to write clear, modular tests

Ruby syntax is powerful, and RSpec's Domain Specific Language inherits from it. You will learn how to rely on it to write clear and modular tests.

Raise the quality of your tests

RSpec and Rails have a great ecosystem of libraries and tools to complement them. With Faker and FactoryBot, we will see how to streamline the creation of test data that is full of sense and not brittle.

Develop a good understanding of the different types of tests

There are plenty of layers to tests in Ruby applications: we will see which ones to focus on and how to avoid walking on our own steps when doing so.

A step towards Test-Driven Development

Once we have a good grasp of how to write tests, we will get to Test Driven Development.

We won't have time to get perfect at it, but we will see how this approach can turn our approach to writing code on its head and for good.

A pattern of wavy dots
Be the first to know about upcoming cohorts

RSpec Testing Fundamentals for Ruby Developers

|

Bulk purchases

Meet your instructor

Thomas Riboulet

Thomas Riboulet

Consultant Staff Engineer

Thomas has broad experience leading teams in startups across two countries (France and UK) and has expertise across the entire stack, including product development, cloud hosting, and tooling.


With a firm belief in a craftsmanship approach, Thomas enjoys sharing his experience and supporting other engineers on their journey of building great teams and products.

A pattern of wavy dots
Be the first to know about upcoming cohorts

RSpec Testing Fundamentals for Ruby Developers

|

Bulk purchases

Course syllabus

01

Learning RSpec bases

We will cover all the bases of RSpec:

  • how to install it in a project
  • how to prepare the files structure
  • how to write a first test
  • how to run the test

Then we will start to get more details about how to write tests for real:

  • basic assertions and expectations
  • the built-in matchers

02

Diving dipper: more matchers

The second module covers further the syntax of RSpec with more advanced concepts.

  • Advanced matchers (predicate, collections, exceptions, ...)
  • Custom matchers
  • Contexts & Hooks

03

Pushing further: shared examples, factories

Once we have learned how to write plenty of tests we will see how to write tests for our ActiveRecord models:

  • beyond simple classes
  • factories of data
  • shared examples

04

Smoke and mirrors: mocking, stubbing

Some tests require plenty of isolation. To do so, we will see a few topics to help:

  • mocking & stubbing
  • additional factory tricks
  • how to deal with API calls

05

Test Driven Development: writing tests to shape our code

This part is about how to stop seeing tests as an afterthought of writing code to implement a feature.

This part is about how to start seeing tests as part of the feature, part of the design of the code itself.

Course schedule

4-6 hours per week
  • Mondays, Wednesdays & Fridays

    10:00 - 11:00 CEST (UTC+2)

    A 45 to 60 minutes event where we cover one module through different formats.

  • Tuesdays & Thursdays (optional)

    14:00 - 15:00 CEST (UTC+2)

    Office hours via a group chat. This is helpful to go through some details of the current module.

  • Weekly projects

    2 hours per week

    As the course is quickly applicable to your day-to-day work, it includes a strong encouragement to do so through custom weekly projects.

A pattern of wavy dots
Be the first to know about upcoming cohorts

RSpec Testing Fundamentals for Ruby Developers

|

Bulk purchases

Get the course paid or reimbursed by your employer

Get the course paid or reimbursed by your employer

Your employer may have funds to cover for this course

Most online training will fit into companies training policies. And if they don't have then it's still worth the try to ask.

Make the ask easy with a simple template

Learn with a cohort of peers

Join a community of like-minded people who want to learn and grow alongside you.

Learning is better with cohorts

Learning is better with cohorts

Active learning, not passive watching

This course builds on live workshops and hands-on projects

Interactive and project-based

You’ll be interacting with other learners through breakout rooms and project teams

Learn with a cohort of peers

Join a community of like-minded people who want to learn and grow alongside you

Async too !

While a big part of the course is relying on synchronous workshops you can also rely on asynchronous messaging to interact with the teacher and your cohort's peers.

A pattern of wavy dots

Questions? Email us for answers and more details about the class. We'd be happy to hear from you.

Frequently Asked Questions

What happens if I can’t make a live session?
I work full-time, what is the expected time commitment?
What’s the refund policy?
What happens once the course is finished?
The course was great, but ... I would like you to come to help me directly
A pattern of wavy dots
Be the first to know about upcoming cohorts

RSpec Testing Fundamentals for Ruby Developers

|

Bulk purchases