@products[“car”] is not being recognized in my tests:
class ProductsControllerTest < Test::Unit::TestCase
post :view_product, :id=>@products[“car”].id
Does anyone have any idea why its not working?
Im having to do this instead, which is not ideal:
post :view_product, :id=>1