Your search for tdd returned 4 results.
You may have upgraded Rspec recently. Or perhaps a new team member joined, ran bundle and couldn't run any controller tests. (more…)
I needed to stub out a Backbone collection's fetch method and make it return success. I'm using Jasmine BDD for the testing framework and Sinon.js for stubbing the methods. Here's how I did it: (more…)
Using Cucumber and Rspec for the first time has been ... a little frustrating. I followed along with the main tutorial in The Rspec Book and then skimmed the later chapters. I thought it was quite good until I had to start testing an actual rails app and felt a little at a loss. But I digress ... (more…)