Hi,

After coding my app and enjoying a green wave of tests, I had horrible
feedback about some bugs.

Those bugs happened to some well tested parts of my app.

After some research, I found out that

get :index, :page => 2, :per_page => 5

is different from:

get :index, :page => "2", :per_page => "5"

So I simply missed some 'to_i' in my controller.

I thought, the 'get' parameters would have been stringified, like it
is in a standard request.

Why is it not the case?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to