File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 33require 'spec_helper'
44require 'rss'
55require_relative '../../app'
6+ require 'html2rss'
67
78RSpec . describe Html2rss ::Web ::App do # rubocop:disable RSpec/SpecFilePathFormat
89 include Rack ::Test ::Methods
@@ -82,14 +83,12 @@ def app = described_class
8283
8384 context 'when strategy is not registered' do
8485 subject ( :response ) do
85- VCR . use_cassette 'auto_source-h2r-web' do
86- get "/auto_source/#{ Base64 . urlsafe_encode64 ( 'https://github.com/html2rss/html2rss-web' ) } ?strategy=nope" ,
87- { } ,
88- request_headers . merge ( 'HTTP_AUTHORIZATION' => basic_authorize ( username , password ) )
89- end
86+ get "/auto_source/#{ Base64 . urlsafe_encode64 ( 'https://github.com/html2rss/html2rss-web' ) } ?strategy=nope" ,
87+ { } ,
88+ request_headers . merge ( 'HTTP_AUTHORIZATION' => basic_authorize ( username , password ) )
9089 end
9190
92- it 'responds with 500 Internal Server Error' , :aggregate_failures do
91+ it 'responds with Error' , :aggregate_failures do
9392 expect ( response . status ) . to eq 422
9493 expect ( response . body ) . to match ( /UnknownStrategy/ )
9594 end
You can’t perform that action at this time.
0 commit comments