Permalink
Browse files

Don't test openid if not available

  • Loading branch information...
1 parent 0d95825 commit 848d18103fd12e11e2087ddb81d6dbafdbbd0532 @chneukirchen committed Aug 9, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/spec_rack_auth_openid.rb
View
5 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
end
end
+
+rescue LoadError
+ $stderr.puts "Skipping Rack::Auth::OpenID tests (ruby-openid 2 is required). `gem install ruby-openid` and try again."
+end

0 comments on commit 848d181

Please sign in to comment.