blob: bcb7abca21ee682c175a4e40253d8af25bcb018c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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',
services: ["eip"]
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,
services: ["eip", "email"]
end
end
|