Sha256: 487b127a06e5192915550718631ff9008612beaedc8ce36c7374587713648e55

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

RSpec.describe "Liquid custom variables", type: :feature do
  let(:site) { create(:site) }

  describe "for unknown variables" do
    it "responds with blank value" do
      create(:page, site: site,
                    slug: "amazing",
                    content: "Unknown Variable: ~{{ unknown_variable }}~")

      visit "/amazing"

      expect(page).to have_content("Unknown Variable: ~~")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 spec/features/frontend/liquid/variables/unknown_spec.rb