Creating a User

To get our first step to pass, we need to be able to create a user in our system. We could do that by walking around the UI, filling in the user registration forms and clicking buttons, but actually that’s not the point of this feature. Our goal is to build the page where you can see a user’s messages so we don’t need to worry about all that user registration stuff.

Let’s imagine we have a fast-forward button, and we skip past all the user registration to the point where the user has registered. What state is the system in now?

Well, we don’t know for sure because we haven’t built those screens yet, but it seems safe to assume that there would be a new row in the users table in our database. To get the system into that state, ...

Get The Cucumber Book, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.