Skip to content

Commit

Permalink
- Fix failing tests:
Browse files Browse the repository at this point in the history
-- Legislation should return all items for key legislationTitle_ses
-- Attachment should return all items for key attachment_t
  • Loading branch information
j-corry committed Sep 22, 2023
1 parent 81c52e5 commit ce4a778
Show file tree
Hide file tree
Showing 7 changed files with 418 additions and 202 deletions.
2 changes: 1 addition & 1 deletion app/models/content_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def topics
def legislation
return if content_object_data['legislationTitle_ses'].blank?

content_object_data['legislationTitle_ses'].first
content_object_data['legislationTitle_ses']
end

def department
Expand Down
2 changes: 1 addition & 1 deletion app/models/written_statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def object_name
def attachment
return if content_object_data['attachment_t'].blank?

content_object_data['attachment_t'].first
content_object_data['attachment_t']
end

def notes
Expand Down
2 changes: 1 addition & 1 deletion coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"result": {
"line": 95.69
"line": 96.9
}
}
22 changes: 20 additions & 2 deletions coverage/.resultset.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@
1,
108,
null,
0,
2,
null,
null,
1,
Expand Down Expand Up @@ -835,8 +835,12 @@
null,
6,
null,
null,
null,
null,
2,
null,
null,
1,
null,
1,
Expand Down Expand Up @@ -930,6 +934,14 @@
null,
null,
1,
null,
null,
null,
null,
null,
null,
null,
1,
0,
null,
0,
Expand All @@ -945,6 +957,12 @@
null,
null,
1,
0,
null,
0,
null,
null,
1,
4,
null,
2,
Expand Down Expand Up @@ -2755,6 +2773,6 @@
]
}
},
"timestamp": 1695371096
"timestamp": 1695396455
}
}
Loading

0 comments on commit ce4a778

Please sign in to comment.