test/omniauth/url_helpers_test.rb in devise-jdguyot-1.2.rc2 vs test/omniauth/url_helpers_test.rb in devise-jdguyot-1.2.rc3

- old
+ new

@@ -42,6 +42,13 @@ test 'should not add a "?" if no param was sent' do assert_equal "/users/auth/open_id", @controller.omniauth_authorize_path(:user, :open_id) end + + test 'should set script name in the path if present' do + @request.env['SCRIPT_NAME'] = '/q' + + assert_equal "/q/users/auth/facebook", + @controller.omniauth_authorize_path(:user, :facebook) + end end