Skip to content

Commit db94f9e

Browse files
committed
Provide valid input in live_content_spec
Removing the compacting has surfaced some more requirements for the input in the live_content_spec. All of these should be required in order to publish an edition of the given type, so hopefully we aren't just filtering out realistic scenarios... ... but this is starting to require quite a bit of test setup overhead
1 parent 24fb21e commit db94f9e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

spec/integration/graphql/live_content_spec.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
RSpec.describe "Requesting live content by base path" do
22
schema_specific_fields = {
3-
news_article: { details: { body: "" } },
3+
ministers_index: {
4+
details: { body: "", reshuffle: {} },
5+
},
6+
news_article: {
7+
details: {
8+
body: "",
9+
change_history: [],
10+
emphasised_organisations: [],
11+
first_public_at: "2016-04-11T10:52:00.000+01:00",
12+
image: { url: "" },
13+
political: false,
14+
},
15+
},
16+
role: { details: { body: "", supports_historical_accounts: false } },
417
world_index: {
518
details: { world_locations: [], international_delegations: [] },
619
},

0 commit comments

Comments
 (0)