Skip to content

Commit

Permalink
Fix trustroot unit test to pass on ruby 1.9.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Chen committed Mar 27, 2012
1 parent 247a7cb commit 84d1ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_trustroot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def _test_sanity(case_, sanity, desc)
assert(tr.sane?)
assert(OpenID::TrustRoot::TrustRoot.check_sanity(case_))
elsif sanity == 'insane'
assert(!tr.sane?)
assert(!tr || !tr.sane?)
assert(!OpenID::TrustRoot::TrustRoot.check_sanity(case_))
else
assert(tr.nil?, case_)
Expand Down

0 comments on commit 84d1ef4

Please sign in to comment.