Saturday, January 15, 2011

Iteration E2: Functional Test for bad cart

test "should redirect on invalid cart" do
get :show, :id => 'wibble'
assert_redirected_to store_path
assert_match flash[:notice], "Invalid cart"
end

TBD: use internationalized error message?

No comments:

Post a Comment