Note that there are some explanatory texts on larger screens.

plurals
  1. POTest Driven Development (TDD) with Rails
    primarykey
    data
    text
    <p>I am looking for TDD resources that are specific to Rails.</p> <p>I've seen the Rails Guide: <a href="http://guides.rubyonrails.org/plugins.html" rel="nofollow noreferrer">The Basics of Creating a Rails Plugin</a> which really spurred my interest in the topic.</p> <p>I have the Agile Development with Rails book and I see there's some testing-related information there. However, it seems like the author takes you through the steps of building the app, then adds testing afterward. This isn't really Test <strong>Driven</strong> Development.</p> <p>Ideally, I'd like a book on this, but a collection of other tutorials or articles would be great if such a book doesn't exist.</p> <p>Things I'd like to learn:</p> <ul> <li>Primary goal: <strong>Best Practices</strong></li> <li>Unit testing</li> <li>How to utilize Fixtures <ul> <li>Possibly using existing development data <em>in place of</em> fixtures <ul> <li>What's the community standard here?</li> </ul></li> </ul></li> <li>Writing tests for plugins</li> <li>Testing with session data <ul> <li>User is logged in</li> <li>User can access URL /foo/bar</li> </ul></li> <li>Testing changes in data <ul> <li>Author updates post</li> <li>Product status changes to back order</li> <li>User buys product (behavior?) <ul> <li>User is logged in</li> <li>User has valid address and valid credit card</li> <li>Order record is made</li> <li>Credit Card transaction history updated</li> <li>Send email to user</li> </ul></li> </ul></li> <li>Testing success of sending email </li> <li>Testing AJAX <ul> <li>Possibly testing general jQuery functionality (Interface elements, etc)</li> </ul></li> <li>RSpec <ul> <li>What place does RSpec have in a Rails app</li> </ul></li> <li>The future of testing <ul> <li>Where is testing going? What things are on their way out?</li> <li>What patterns will be used in Rails 3?</li> </ul></li> </ul> <p>Thanks for any help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload