-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy patheducation_levels_spec.rb
More file actions
40 lines (36 loc) · 1.14 KB
/
education_levels_spec.rb
File metadata and controls
40 lines (36 loc) · 1.14 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require "swagger_helper"
RSpec.describe "api/v1/education_levels", type: :request do
path "/api/education_levels" do
get("list education_levels") do
response(200, "successful") do
after do |example|
example.metadata[:response][:content] = {
"application/json" => {
example: JSON.parse(response.body, symbolize_names: true)
}
}
end
pending "Not yet implemented, when implemented uncomment the assertion below"
# run_test!
end
end
end
path "/api/education_levels/{id}" do
# You'll want to customize the parameter types...
parameter name: "id", in: :path, type: :string, description: "id"
get("show education_level") do
response(200, "successful") do
let(:id) { "123" }
after do |example|
example.metadata[:response][:content] = {
"application/json" => {
example: JSON.parse(response.body, symbolize_names: true)
}
}
end
pending "Not yet implemented, when implemented uncomment the assertion below"
# run_test!
end
end
end
end