Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't test openid if not available

  • Loading branch information...
commit 848d18103fd12e11e2087ddb81d6dbafdbbd0532 1 parent 0d95825
Christian Neukirchen authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/spec_rack_auth_openid.rb
5 test/spec_rack_auth_openid.rb
View
@@ -1,5 +1,6 @@
require 'test/spec'
+begin
# requires the ruby-openid gem
require 'rack/auth/openid'
@@ -130,3 +131,7 @@
$-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
Please sign in to comment.
Something went wrong with that request. Please try again.