Monthly Archives: December 2011

Default request parameters in Rails functional tests

I was looking for an easy way to force every request in a functional test in Rails to use a set of parameters by default, regardless of being specified explicitly. This is, every time I write: it “should get index” do get :index end Rails should actually do: it “should get index” do get :index, … more

Posted in Blogs | Tagged |