Shoulda is a framework that sits on top of Test::Unit and adds a ton of nice features like macro's, nested context, and the ability to create custom tests in a block-based DSL.
The Cucumber behavior-driven development framework is appreciated by developers from many languages. It makes it easy to write plain-text stories that run executable Ruby code against your application.
In this hour and ten minute screencast, you’ll learn the basics of Cucumber. You’ll learn the syntax, organization, and philosophy of writing Features, Scenarios, and Steps. You’ll build an application and learn where unit tests are a better fit.
The PeepCode series on RSpec kicked off ou...
View More
I've worked at Object Mentor, ThoughtWorks, and Obtiva so I come from a test first background. However there are times and situations that call for less automated testing instead of more. Now that TDD and BDD have become near dogma in some circles, it's time to have an honest discussion about finding the appropriate level of testing for your team/project/code. Too much testing can lead to developer backlash, gridlock, morale problems, and poor velocity. On the other hand, lack of testing can ...
View More
Ruby's testing culture goes way back, and has been a force for making many Ruby projects a showcase for solid, maintainable code. That said, within a business an exclusive focus on TDD and BDD can easily miss the bigger picture and drive optimizations in the development process that negatively impact the business as a whole.
Part business talk and part technical talk, we'll discuss what "Experiment Driven Development" is, why you should be doing it from day 1 (probably even before writing ...
View More
Sometimes bad code slips into production and triggers a 500 error. Learn how to be notified of this and resolve it through integration tests.
Here it is, a one stop, rapid-fire tour through the very best and most useful testing tools and tricks that the rails ecosystem has to offer. this is not about testing theory, it's about getting testing done quickly and efficiently without reinventing the wheel.
In order to show how easy it is to configure Devver for a project, we've made a short screencast to walk you through the steps. We've used DataMapper as an example application. As you can see, it only takes a few minutes to set up Devver and then the specs complete in a fraction of the time. In fact, the whole process - setup and Devver run - takes less time than running 'rake spec'.
A few months ago I really hated the idea of testing my code, I just didn't do it. Now I couldn't think of writing a line of code without the proper tests in place.
If you fall into either of these boats you may want to watch this presentation I put together for the Orlando Ruby Users Group. Feedback and comments are always welcome.
Topic's Covered
Why would you test your code?
When do you test your code?
The path to developer enlightenment
Test Driven Development (TDD)
Behavior D...
View More
Covering the newest features of Rails 2.2 including:
Scaling with Etags
Connection Pooling
New Enumerable Methods
The New Test Helpers
Internationalization
Much more new stuff from each Rails gem
Kevin Clark shows us how to use mocks and stubs in your Ruby tests using Mocha and Stubba