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?
Saturday, January 15, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment