@@ -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