From the course: Ruby: Testing with RSpec
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Thinking in user stories - Ruby Tutorial
From the course: Ruby: Testing with RSpec
Thinking in user stories
- Before we begin testing with RSpec, one thing that's going to make testing much easier for you is if you can begin to think about your code in terms of User Stories. A User Story is a description of the experience of a user of your software. We design our software for people to use, for other people, or for ourselves, and so User Stories describe the experience that we're hoping to provide. They describe our goals, and therefore, User Stories make for excellent planning tools. They're also an excellent communication tool between developers. We can describe the experience that we're trying to give to a user, and all developers can work towards achieving that experience. They also make excellent communication tools with clients because they're not written in code. They're written in plain English so we can discuss this experience to see if clients agree, and whether that is the same experience that they want to deliver. Over time, you may find that clients are actually able to provide…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.