diff options
author | mguetlein <martin.guetlein@gmail.com> | 2013-09-06 08:30:19 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2013-09-06 08:30:19 +0200 |
commit | 77f2d2a5cc4a5a09d0a1ac455629a031ca53ae9b (patch) | |
tree | da4e3a661836de3f1407e4ede1466f935a0df518 | |
parent | f7915c0db4fc66a70c1fa22f109d826a981c05ab (diff) |
fix validaiton test
-rw-r--r-- | test/validation-long.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/validation-long.rb b/test/validation-long.rb index 68ad8d6..2abb5e0 100644 --- a/test/validation-long.rb +++ b/test/validation-long.rb @@ -447,7 +447,7 @@ class ValidationTest < MiniTest::Test begin res = yield assert false,"no un-authorized error thrown, result is #{res}" - rescue => e + rescue => ex assert ex.is_a?(OpenTox::UnauthorizedError),"not unauthorized error, instead: #{ex.class}" ensure OpenTox::RestClientWrapper.subjectid = subjectid |