Browse files

test for return_to comma support

  • Loading branch information...
1 parent c6e51bc commit 2f283fef24152eb5b1f66b245bd03f00cd4acc2f @cohuman committed Sep 19, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test_openid.rb
View
7 test/test_openid.rb
@@ -1,3 +1,4 @@
+require 'rubygems'
require 'test/unit'
require 'net/http'
@@ -159,6 +160,12 @@ def test_with_custom_return_to
assert_equal 'success', @response.body
end
+ def test_with_comma_in_return_to
+ @app = app(:return_to => 'http://example.org/complete#/task/1,/user/2')
+ # this call throws an error if you split on the comma
+ process('/', :method => 'GET')
+ end
+
def test_with_get_nested_params_custom_return_to
url = 'http://example.org/complete?user[remember_me]=true'
@app = app(:return_to => url)

0 comments on commit 2f283fe

Please sign in to comment.