diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-08-09 18:50:33 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-08-09 18:50:33 +0200 |
commit | 848d18103fd12e11e2087ddb81d6dbafdbbd0532 (patch) | |
tree | 1b9f9593105c3a200cd008d562772f8ab6b55ffc | |
parent | 0d958256f928a905f76134eee4828a809beb6cac (diff) | |
download | rack-848d18103fd12e11e2087ddb81d6dbafdbbd0532.tar.gz |
Don't test openid if not available
-rw-r--r-- | test/spec_rack_auth_openid.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/spec_rack_auth_openid.rb b/test/spec_rack_auth_openid.rb index 68e3f55f..fd890fd7 100644 --- a/test/spec_rack_auth_openid.rb +++ b/test/spec_rack_auth_openid.rb @@ -1,5 +1,6 @@ require 'test/spec' +begin # requires the ruby-openid gem require 'rack/auth/openid' @@ -130,3 +131,7 @@ $-w, w = nil, $-w # yuck $-w = w end end + +rescue LoadError + $stderr.puts "Skipping Rack::Auth::OpenID tests (ruby-openid 2 is required). `gem install ruby-openid` and try again." +end |