File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 35
35
Dcv ::Sites ::Constants ::PORTABLE_LAYOUTS . each do |portable_layout |
36
36
context "#{ portable_layout } layout" do
37
37
let ( :site_layout ) { portable_layout }
38
+ let ( :layout_style ) { portable_layout == Dcv ::Sites ::Constants ::LAYOUT_REPOSITORIES ? Dcv ::Sites ::Constants ::LAYOUT_GALLERY : portable_layout }
39
+
38
40
context "and default palette" do
39
41
let ( :site_palette ) { 'default' }
40
- it { expect ( controller . subsite_styles ) . to eql ( [ "#{ portable_layout } -#{ default_palette } " ] ) }
42
+ it { expect ( controller . subsite_styles ) . to eql ( [ "#{ layout_style } -#{ default_palette } " ] ) }
41
43
end
42
44
context "and custom palette" do
43
45
let ( :site_palette ) { 'custom' }
44
- it { expect ( controller . subsite_styles ) . to eql ( [ "#{ portable_layout } -custom" ] ) }
46
+ it { expect ( controller . subsite_styles ) . to eql ( [ "#{ layout_style } -custom" ] ) }
45
47
end
46
48
end
47
49
end
You can’t perform that action at this time.
0 commit comments