Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
9d534a2
feat: add rswag gem
sean-dickinson Jul 29, 2023
7bda61c
feat: run rswag:api:install
sean-dickinson Jul 29, 2023
e8db575
feat: run rswag:ui:install
sean-dickinson Jul 29, 2023
768ad72
feat: run rswag:specs:install
sean-dickinson Jul 29, 2023
25328d6
feat: working rswag test
sean-dickinson Jul 29, 2023
67ef985
fix: remove generated tests
sean-dickinson Jul 29, 2023
a64754f
Add localhost default
Jul 29, 2023
d692cdb
lint
sean-dickinson Jul 29, 2023
d46b641
Hardcode localhost as host for now
Jul 29, 2023
ef089df
Add swagger for api/v1/countries
Jul 29, 2023
3d072cb
feat: disable dry run for swagger generation
sean-dickinson Jul 29, 2023
10f9285
fix: countries swagger spec with real id
sean-dickinson Jul 29, 2023
5efb2c0
Add swagger request specs for controllers and regenerate swagger file
Jul 29, 2023
20d3678
Add request specs for all API controllers with auth
Jul 29, 2023
b106ad0
feat: only load swagger engine in dev
sean-dickinson Jul 29, 2023
6df149d
Merge branch 'add-rswag' of github.com:rubyforgood/Flaredown into add…
sean-dickinson Jul 29, 2023
b2f1681
Move mandatory API authentication to swagger_helper
Jul 29, 2023
9a1df45
fix: functional users patch
sean-dickinson Jul 29, 2023
662709d
fix: simplify users swagger spec
sean-dickinson Jul 29, 2023
5d1d748
fix: remove unneeded auth in users spec
sean-dickinson Jul 30, 2023
6805edb
feat: add rswag gem
sean-dickinson Jul 29, 2023
73ca67f
feat: run rswag:api:install
sean-dickinson Jul 29, 2023
a517ad7
feat: run rswag:ui:install
sean-dickinson Jul 29, 2023
95e0b06
feat: run rswag:specs:install
sean-dickinson Jul 29, 2023
05ee623
feat: working rswag test
sean-dickinson Jul 29, 2023
39f72cb
fix: remove generated tests
sean-dickinson Jul 29, 2023
57cab67
Add localhost default
Jul 29, 2023
63bd7a2
lint
sean-dickinson Jul 29, 2023
01a2fda
Hardcode localhost as host for now
Jul 29, 2023
cbbf8f8
Add swagger for api/v1/countries
Jul 29, 2023
c6973f2
feat: disable dry run for swagger generation
sean-dickinson Jul 29, 2023
f029156
fix: countries swagger spec with real id
sean-dickinson Jul 29, 2023
d414da8
feat: only load swagger engine in dev
sean-dickinson Jul 29, 2023
9bac441
Add swagger request specs for controllers and regenerate swagger file
Jul 29, 2023
6d20b4d
Add request specs for all API controllers with auth
Jul 29, 2023
6dc1251
Move mandatory API authentication to swagger_helper
Jul 29, 2023
88cc5bd
fix: functional users patch
sean-dickinson Jul 29, 2023
da06219
fix: simplify users swagger spec
sean-dickinson Jul 29, 2023
2188a62
fix: remove unneeded auth in users spec
sean-dickinson Jul 30, 2023
c814986
merge: upstream changes
sean-dickinson Jul 30, 2023
3d3eb88
fix: Gemfile.lock
sean-dickinson Jul 30, 2023
0b70655
feat: mark weathers_spec as pending
sean-dickinson Jul 30, 2023
9e7aff6
feat: skip all request tests
sean-dickinson Jul 30, 2023
dcf9b87
lint
sean-dickinson Jul 30, 2023
3da5770
fix: remove excess metadata on treatments
sean-dickinson Jul 30, 2023
92b52f1
docs: update readme
sean-dickinson Jul 30, 2023
c22b3c9
docs: update readme
sean-dickinson Jul 30, 2023
9db72dd
feat: functional ethnities swagger spec
sean-dickinson Jul 30, 2023
911fdec
feat: regenerate rswag
sean-dickinson Jul 30, 2023
5c8d05d
feat: functional sexes_spec
sean-dickinson Jul 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: functional sexes_spec
  • Loading branch information
sean-dickinson committed Jul 30, 2023
commit 5c8d05da05595d11a9ab48d5ca03af044ad45b4c
9 changes: 3 additions & 6 deletions backend/spec/requests/api/v1/sexes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@
}
}
end
pending "Not yet implemented, when implemented uncomment the assertion below"
# run_test!
run_test!
end
end
end

path "/api/sexes/{id}" do
# You'll want to customize the parameter types...
parameter name: "id", in: :path, type: :string, description: "id"

get("show sex") do
response(200, "successful") do
let(:id) { "123" }
let(:id) { "female" }

after do |example|
example.metadata[:response][:content] = {
Expand All @@ -32,8 +30,7 @@
}
}
end
pending "Not yet implemented, when implemented uncomment the assertion below"
# run_test!
run_test!
end
end
end
Expand Down
1 change: 1 addition & 0 deletions backend/spec/requests/api/v1/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

patch("update user") do
parameter name: :user, in: :body

response(200, "successful") do
let(:user) { {user: {email: "updatedemail@example.com"}} }
after do |example|
Expand Down