Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 34500380bc
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.403 kb
require File.expand_path('../helpers', __FILE__)
class ExceptionsTest < MiniTest::Unit::TestCase
def setup
@app = VK::Standalone.new app_id: 2657696
end
def test_bad_requests
assert_raises(::VK::BadResponseException) do
@app.getProfiles http_error: {}
end
end
def test_api_errors
assert_raises(::VK::ApiException) do
@app.getProfiles error: {}
end
end
end
Jump to Line
Something went wrong with that request. Please try again.