Skip to content

Commit edd5bd0

Browse files
committed
fixup integrate
Signed-off-by: Gil Desmarais <[email protected]>
1 parent 74e3d0c commit edd5bd0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

spec/routes/auto_source_spec.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'spec_helper'
44
require 'rss'
55
require_relative '../../app'
6+
require 'html2rss'
67

78
RSpec.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

0 commit comments

Comments
 (0)