Skip to content

Commit 91fb8d5

Browse files
committed
Tighten featured feed examples
1 parent 07cc691 commit 91fb8d5

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ This trial run is intentionally minimal:
6363
- automatic feed generation stays disabled by default
6464
- Browserless is not wired in yet
6565

66-
Move to Docker Compose when you want Browserless, update automation, or extra local feed overrides in `config/feeds.yml`.
66+
Use Docker Compose for Browserless, auto-updates, or local feed overrides.
6767

6868
## Deploy (Docker Compose)
6969

spec/html2rss/web/api/v1_spec.rb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ def json_feed_headers_tuple
8181
]
8282
end
8383

84+
def expected_featured_feeds
85+
[
86+
['/microsoft.com/azure-products.rss', 'Azure product updates',
87+
'Follow Microsoft Azure product announcements from your own instance.'],
88+
['/phys.org/weekly.rss', 'Top science news of the week',
89+
'Try a high-signal feed with stable weekly headlines from the built-in config set.'],
90+
['/softwareleadweekly.com/issues.rss', 'Software Lead Weekly issues',
91+
'Follow a long-running newsletter archive from the embedded config catalog.']
92+
].map { |path, title, description| { 'path' => path, 'title' => title, 'description' => description } }
93+
end
94+
8495
around do |example|
8596
ClimateControl.modify(AUTO_SOURCE_ENABLED: 'true') { example.run }
8697
end
@@ -133,12 +144,7 @@ def json_feed_headers_tuple
133144

134145
expect(last_response.status).to eq(200)
135146
json = expect_success_response(last_response)
136-
expect(json.dig('data', 'instance', 'featured_feeds')).to include(
137-
include(
138-
'path' => '/microsoft.com/azure-products.rss',
139-
'title' => 'Azure product updates'
140-
)
141-
)
147+
expect(json.dig('data', 'instance', 'featured_feeds')).to eq(expected_featured_feeds)
142148
end
143149

144150
it 'returns API information with trailing slash', :aggregate_failures do

0 commit comments

Comments
 (0)