© Greg Donald 2024
G. DonaldHands-on Test-Driven Developmenthttps://doi.org/10.1007/978-1-4842-9748-3_7

7. Creating Pages

Greg Donald1  
(1)
Clarksville, TN, USA
 

It may be surprising to make it all the way to this chapter without having written any HTML yet; we are creating a web application after all! We’ve been doing a lot of preparation, making sure we get off to a solid start. Rest assured, it’s now time to get down to business. In this chapter, we’ll create our homepage, which will be the first page that users see when they visit our site.

We’ll start by writing a system spec for our homepage and learn about Capybara,1 a tool that facilitates web browser testing from inside our system specs.

System Specs

A system spec is a spec that simulates ...

Get Hands-on Test-Driven Development: Using Ruby, Ruby on Rails, and RSpec now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.