jtrupiano/rack-rewrite — Issue #24: testing failing
Author: AlvaroOlivencia
Created: 2012-01-28 07:06:23+00:00
State: open

Hi,
first of all, awesome gem.
I'm having problems with a test. I guess that Functional testing is not an option (if this is not true please tell me), so that's why I decided to test a controller action (rewrited by this gem), using Integration testing.

My rule is:
rewrite '/things-to-do-in-london', '/en/tours/england/london?rewrite=things-to-do-in-london'

And my test:
test "things-to-do-in-london" do
get '/things-to-do-in-london'
assert_response :ok
end

But I'm getting:
Expected response to be a <:ok>, but was <404>

Do you know the problem ?