27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Summary<br />

features to describe the behavior of your application and then implementing the necessary<br />

steps to make them pass. Thankfully, there’s another gem that generates some<br />

of these steps for you.<br />

When you wish to test that a specific controller action is inaccessible, you use<br />

RSpec because it’s better suited for single-request testing. You use Cucumber when<br />

you want to test a series of requests, such as when creating a project. You’ll see plenty<br />

of examples of when to use Cucumber and when to use RSpec in later chapters.<br />

Let’s get into it!<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!