blob: 35a9de604e8d8f3fc75bdec2d318e38fa48beaba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'test_helper'
class V1::ServicesControllerTest < ActionController::TestCase
test "anonymous user can request service info" do
get :show, format: :json
assert_json_response name: 'anonymous',
cert_prefix: 'LIMITED',
description: 'anonymous account, with rate limited VPN'
end
test "user can see their service info" do
login
get :show, format: :json
assert_json_response name: 'free',
cert_prefix: 'LIMITED',
description: 'free account, with rate limited VPN',
cost: 0,
quota: 100
end
end
|