diff options
Diffstat (limited to 'spec/controllers/help_controller_spec.rb')
-rw-r--r-- | spec/controllers/help_controller_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/help_controller_spec.rb b/spec/controllers/help_controller_spec.rb index 71d9cab7280..599e82afe9b 100644 --- a/spec/controllers/help_controller_spec.rb +++ b/spec/controllers/help_controller_spec.rb @@ -150,11 +150,11 @@ RSpec.describe HelpController do context 'for Markdown formats' do subject { get :show, params: { path: path }, format: :md } - let(:path) { 'ssh/README' } + let(:path) { 'ssh/index' } context 'when requested file exists' do before do - expect_file_read(File.join(Rails.root, 'doc/ssh/README.md'), content: fixture_file('blockquote_fence_after.md')) + expect_file_read(File.join(Rails.root, 'doc/ssh/index.md'), content: fixture_file('blockquote_fence_after.md')) subject end @@ -265,7 +265,7 @@ RSpec.describe HelpController do it 'always renders not found' do get :show, params: { - path: 'ssh/README' + path: 'ssh/index' }, format: :foo expect(response).to be_not_found @@ -274,7 +274,7 @@ RSpec.describe HelpController do end def stub_readme(content) - expect_file_read(Rails.root.join('doc', 'README.md'), content: content) + expect_file_read(Rails.root.join('doc', 'index.md'), content: content) end def stub_two_factor_required |