Skip to content

Commit

Permalink
fixup spec to account for repositories layout using gallery assets (D…
Browse files Browse the repository at this point in the history
…LC-1157)
  • Loading branch information
barmintor committed Sep 26, 2024
1 parent 6cdff39 commit 0b384ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/support/configurable_layouts_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@
Dcv::Sites::Constants::PORTABLE_LAYOUTS.each do |portable_layout|
context "#{portable_layout} layout" do
let(:site_layout) { portable_layout }
let(:layout_style) { portable_layout == Dcv::Sites::Constants::LAYOUT_REPOSITORIES ? Dcv::Sites::Constants::LAYOUT_GALLERY : portable_layout }

context "and default palette" do
let(:site_palette) { 'default' }
it { expect(controller.subsite_styles).to eql(["#{portable_layout}-#{default_palette}"]) }
it { expect(controller.subsite_styles).to eql(["#{layout_style}-#{default_palette}"]) }
end
context "and custom palette" do
let(:site_palette) { 'custom' }
it { expect(controller.subsite_styles).to eql(["#{portable_layout}-custom"]) }
it { expect(controller.subsite_styles).to eql(["#{layout_style}-custom"]) }
end
end
end
Expand Down

0 comments on commit 0b384ee

Please sign in to comment.