blob: eeac735507955b6f951e5c08abfeb5ae25d86bfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require_relative "setup.rb"
class ErrorTest < MiniTest::Test
def test_bad_request
object = OpenTox::Feature.new
assert_nil OpenTox::Feature.find(object.id)
end
def test_error_methods
assert_raises OpenTox::NotFoundError do
not_found_error "This is a test"
end
end
def test_exception
assert_raises Exception do
raise Exception.new "Basic Exception"
end
end
end
|