Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-06-15 12:42:56 +0300
committerDouwe Maan <douwe@gitlab.com>2018-06-15 12:42:56 +0300
commitfbc749a96e07dd1b1b5760cfe376b5b7838181f0 (patch)
treeab7f1576bcb409f614db6a40ca77de032553a7a7 /spec/controllers
parent4ac381a565eb1b3e7ebaec443889c6a7138fdfd0 (diff)
Reuse viewer param and move logic to blob controller
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/blob_controller_spec.rb5
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