Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Seed with layouts before all
Browse files Browse the repository at this point in the history
  • Loading branch information
osahyoun committed Jan 10, 2017
1 parent 2f0afb0 commit 0483e33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/requests/liquid_rendering_spec.rb
Expand Up @@ -2,13 +2,16 @@
require 'rails_helper'

describe 'Liquid page rendering' do
before(:all) do
LiquidMarkupSeeder.seed(quiet: true)
end

LiquidMarkupSeeder.titles.each do |title|
describe "page with layout #{title}" do
[:en, :fr, :de].each do |language_code|
it "can render in #{language_code} without errors" do
language = create :language, code: language_code
LiquidMarkupSeeder.seed(quiet: true) # transactional fixtures nuke em every test :/
layout = LiquidLayout.find_by(title: title)
layout = LiquidLayout.find_by!(title: title)

unless LiquidTagFinder.new(layout.content).skip_smoke_tests?
page = create :page, liquid_layout: layout, language: language
Expand Down

0 comments on commit 0483e33

Please sign in to comment.