When applying TDD, do you create tests that verify expected excepti开发者_开发问答ons for arguments (ArgumentException, ArgumentNullException, InvalidOperation, etc.) or just ones that are \"known\",
I\'m working on an e-commerce system and familiarizing myself with RSpec. An order has an associated payment.When the order is completed it starts to process the payment via our payment gateway.
Say I have an instance method that does many different things that I need to test, something like store#process_order. I\'d like to test that it sends an email to the customer, adds an entry in the or
Is there a way to add Red Green color开发者_高级运维s to the console for passing and failing tests on the KIF framework? I\'m not sure if this is in the works or if it\'s possible. Maybe by running th
I want to test a file upload in rails, but am not sure how to do this. Here is the controller code: def uploadLicense
In this not so new article http://static.springsource.org/docs/Spring-MVC-step-by-step/part3.html I saw something that get my attention - TDD and TOD - as TOD is Test oriented development where develo
If I have 2 models - eg. Shop and Brand and i want to model the shop having between say, 3 - 10 brands, what is a good way to do that using factory girl?
I\'m trying to write a test case for a debugging method that writes messages to the JavaScript console using console.log(). The test has to check that the message has been successfully written to the
I\'d like to shif开发者_Go百科t my code to a more test driven development model, but am unsure the best way to do this for the presentation layer.
In order to use test-driven development principles for code involving the Android status bar, I would need to write tests that verify an expected state has been achieved. For example, a little unit te