Test Driven Development with RSpec — July 2024

Test-Driven Development (TDD), supports an iterative and incremental development cycle. It involves writing your tests first before writing any production code. A test suite provides a safety net as you grow your product's behaviour one test at a time. This safety net supports you now and in the future to keep your application working as you change and grow it.

This concept can be challenging for those unused to it. What am I testing? How does that help me write better code?

In this workshop you will answer those questions as you learn test-driven development in Ruby on Rails using RSpec and Capybara amongst other tools. RSpec is the most popular Ruby testing framework. Capybara is a commonly used Ruby library which makes it easy to simulate how a user interacts with your application.

You will learn everything you need to know to start practicing TDD in your Ruby projects and become more confident in writing tests.

For more details, see the workshop page on our site.

Early bird tickets available until midnight April 30th, Sydney time.

Tickets

Schedule

July 30th, 2024

9:30am – 12:00pm AEST
Day 1
  • How to set up your test suite using RSpec
  • The four phases of a test
  • Integration specs, factories vs fixtures, and Shoulda Matchers
  • Testing from the outside in: feature specs and BDD
  • Using translations in your specs

July 31st, 2024

9:30am – 12:00pm AEST
Day 2
  • Controller specs
  • Test collaborators
  • Refactor a messy view into a presenter while using doubles

August 1st, 2024

9:30am – 12:00pm AEST
Day 3
  • Testing considerations and strategies
  • Testing anti-patterns and smells
  • Writing faster specs

August 2nd, 2024

All day
Day 4
  • Build out a create and welcome new user feature, using mailer specs, job specs and service object specs instead of using ActiveRecord callbacks.
  • Demonstrate how to implement and mock an API.
  • Use Webmock and a Fake Sinatra server to mock http requests

Additional Information