summaryrefslogtreecommitdiff
path: root/test/api.rb
blob: daa2e31e87bb6e00e23cb670d036b9b4b624b3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative "setup.rb"
$api_uri = "#{$host}/api/api.json"


class ApiTest < MiniTest::Test

  def test_0_api_get
    res = RestClientWrapper.get $api_uri
    assert_equal res.code, 200
    assert JSON.parse "#{res.body}"
  end

end