search for: 31f096fb

Displaying 1 result from an estimated 1 matches for "31f096fb".

2006 Jun 27
2
testing - how to get access to an instance variable
inside controller def foo @city = City.find(@params[:id]) @city.bar = 1234 end While writing functional tests how do I ensure that the @city.bar is 1234? def test_edit get :edit, :id => 1 assert_not_nil assigns(:city) #?? how to assert that city.bar is 1234 end Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: