test/unit/user_session_test.rb in authpds-0.0.5 vs test/unit/user_session_test.rb in authpds-0.0.6

- old
+ new

@@ -19,9 +19,16 @@ assert_equal( "https://logindev.library.nyu.edu/pds?func=logout&url=https%253A%252F%252Flogindev.library.nyu.edu%252Flogout", user_session.logout_url) end + test "sso_url" do + user_session = UserSession.new + assert_equal( + "https://logindev.library.nyu.edu/pds?func=sso&institute=&calling_system=authpds&url=http%3A%2F%2Frailsapp.library.nyu.edu%2Fvalidate%3Freturn_url%3D", + user_session.sso_url) + end + test "validate_url" do user_session = UserSession.new assert_equal( "http://railsapp.library.nyu.edu/validate?return_url=http://railsapp.library.nyu.edu", user_session.send(:validate_url, :return_url => "http://railsapp.library.nyu.edu")) \ No newline at end of file