diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-12 14:43:06 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-13 11:46:10 -0500 |
commit | acffc062133e5793ac08b9529ab54689557766d4 (patch) | |
tree | 019482c4b8af8fcd4a0dabf89a4c47c389e37730 /spec/helpers/blob_helper_spec.rb | |
parent | 4328bc1769c52393580cb777d34dbd6ebff089cf (diff) | |
download | gitlab-ce-acffc062133e5793ac08b9529ab54689557766d4.tar.gz |
Specify explicitly whether a blob viewer should be loaded asynchronously
Diffstat (limited to 'spec/helpers/blob_helper_spec.rb')
-rw-r--r-- | spec/helpers/blob_helper_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/helpers/blob_helper_spec.rb b/spec/helpers/blob_helper_spec.rb index 1b4393e6167..b8f9828df5a 100644 --- a/spec/helpers/blob_helper_spec.rb +++ b/spec/helpers/blob_helper_spec.rb @@ -116,10 +116,11 @@ describe BlobHelper do let(:viewer_class) do Class.new(BlobViewer::Base) do + include BlobViewer::ServerSide + self.max_size = 1.megabyte self.absolute_max_size = 5.megabytes self.type = :rich - self.client_side = false end end |