diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-06-15 12:42:56 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-15 12:42:56 +0300 |
commit | fbc749a96e07dd1b1b5760cfe376b5b7838181f0 (patch) | |
tree | ab7f1576bcb409f614db6a40ca77de032553a7a7 /spec | |
parent | 4ac381a565eb1b3e7ebaec443889c6a7138fdfd0 (diff) |
Reuse viewer param and move logic to blob controller
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/blob_controller_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/controllers/projects/blob_controller_spec.rb b/spec/controllers/projects/blob_controller_spec.rb index f47593aad72..9e696e9cb29 100644 --- a/spec/controllers/projects/blob_controller_spec.rb +++ b/spec/controllers/projects/blob_controller_spec.rb @@ -56,7 +56,7 @@ describe Projects::BlobController do end end - context "html_render=false" do + context "with viewer=none" do let(:id) { 'master/README.md' } before do @@ -65,12 +65,13 @@ describe Projects::BlobController do project_id: project, id: id, format: :json, - html_render: 'false') + viewer: 'none') end it do expect(response).to be_ok expect(json_response).not_to have_key 'html' + expect(json_response).to have_key 'raw_path' end end end |