diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-12 22:43:06 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-13 19:46:10 +0300 |
commit | acffc062133e5793ac08b9529ab54689557766d4 (patch) | |
tree | 019482c4b8af8fcd4a0dabf89a4c47c389e37730 /spec/views | |
parent | 4328bc1769c52393580cb777d34dbd6ebff089cf (diff) |
Specify explicitly whether a blob viewer should be loaded asynchronously
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/blob/_viewer.html.haml_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/views/projects/blob/_viewer.html.haml_spec.rb b/spec/views/projects/blob/_viewer.html.haml_spec.rb index 08018767624..611cb4cb224 100644 --- a/spec/views/projects/blob/_viewer.html.haml_spec.rb +++ b/spec/views/projects/blob/_viewer.html.haml_spec.rb @@ -12,7 +12,7 @@ describe 'projects/blob/_viewer.html.haml', :view do self.partial_name = 'text' self.max_size = 1.megabyte self.absolute_max_size = 5.megabytes - self.client_side = false + self.load_async = true end end @@ -35,9 +35,9 @@ describe 'projects/blob/_viewer.html.haml', :view do render partial: 'projects/blob/viewer', locals: { viewer: viewer } end - context 'when the viewer is server side' do + context 'when the viewer is loaded asynchronously' do before do - viewer_class.client_side = false + viewer_class.load_async = true end context 'when there is no render error' do @@ -65,9 +65,9 @@ describe 'projects/blob/_viewer.html.haml', :view do end end - context 'when the viewer is client side' do + context 'when the viewer is loaded synchronously' do before do - viewer_class.client_side = true + viewer_class.load_async = false end context 'when there is no render error' do |