File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ def handle_error(error) # rubocop:disable Metrics/MethodLength
1111 when Html2rss ::Config ::DynamicParams ::ParamsMissing ,
1212 Roda ::RodaPlugins ::TypecastParams ::Error
1313 set_error_response ( 'Parameters missing or invalid' , 422 )
14- when Html2rss ::Selectors ::PostProcessors ::UnknownPostProcessorName ,
15- Html2rss ::Selectors ::Extractors ::UnknownExtractorName
14+ when Html2rss ::Selectors ::PostProcessors ::UnknownPostProcessorName
1615 set_error_response ( 'Invalid feed config' , 422 )
1716 when LocalConfig ::NotFound ,
1817 Html2rss ::Configs ::ConfigNotFound
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def app = described_class
9494
9595 it 'responds with Error' , :aggregate_failures do
9696 expect ( response . status ) . to eq 422
97- expect ( response . body ) . to match ( /Invalid configuration: {:strategy / )
97+ expect ( response . body ) . to match ( /Html2rss::Config::InvalidConfig / )
9898 end
9999 end
100100 end
You can’t perform that action at this time.
0 commit comments