assert_match/@product = Product\.find\(params\[:id\]\)/,m,"#{name.to_s} should query products table"
end
assert_has_methodf,:newdo|name,m|
assert_match/@product = Product\.new/,m,"#{name.to_s} should instantiate a product"
end
assert_has_methodf,:createdo|name,m|
assert_match/@product = Product\.new\(params\[:product\]\)/,m,"#{name.to_s} should instantiate a product"
assert_match/format.xml \{ render :xml => @product.errors, :status => :unprocessable_entity \}/,m,"#{name.to_s} should set status to :unprocessable_entity code for xml"
assert_match/@product = Product\.find\(params\[:id\]\)/,m,"#{name.to_s} should query products table"
end
assert_has_methodf,:newdo|name,m|
assert_match/@product = Product\.new/,m,"#{name.to_s} should instantiate a product"
end
assert_has_methodf,:createdo|name,m|
assert_match/@product = Product\.new\(params\[:product\]\)/,m,"#{name.to_s} should instantiate a product"
assert_match/format.xml \{ render :xml => @product.errors, :status => :unprocessable_entity \}/,m,"#{name.to_s} should set status to :unprocessable_entity code for xml"