Commit 8e92017
committed
Fix bugs uncovered by v2 API test coverage
These changes resolve the following issues uncovered via the API v2 tests:
- app/views/api/v2/_standard_response.json.jbuilder
- Failure rendering json.client when @client is nil (undefined method `name` for nil)
- app/views/api/v2/datasets/_show.json.jbuilder
- Failure rendering output.doi_url when output is present (undefined method `doi_url`)
- app/views/api/v2/templates/index.json.jbuilder
- Failure in mapping template_ids when some nested keys are nil (undefined method `[]` for nil)
- config/routes.rb
- Spec failures due to undefined route helpers in test context (e.g., `api_v2_templates_path`)1 parent b2bcc3f commit 8e92017
File tree
4 files changed
+3
-3
lines changed- app/views/api/v2
- datasets
- templates
- config
4 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
0 commit comments