plataformatec/devise — pull request #2173 by LTe (2012-12-11 13:00:46+00:00)
Title: Add failing specs for scope and relative url

When I use in application

```ruby
ENV['RAILS_RELATIVE_URL_ROOT'] = 'my_app'
```

and in my routes

```ruby
scope :my_app do
devise_for :users
end
```

devise double render `relative` part of URL. I am including a test that does not pass.

`test_returns_to_the_default_redirect_location_considering_the_relative_url_root_and_scope(FailureTest) [/home/lite/work/devise/test/failure_app_test.rb:67]:
<"http://test.host/scoped/scoped_admin/sign_in"> expected but was
<"http://test.host/scoped/scoped/scoped_admins/sign_in">.`