* Bump liquid from 4.0.3 to 5.0.0 Bumps [liquid](https://github.com/Shopify/liquid) from 4.0.3 to 5.0.0. - [Release notes](https://github.com/Shopify/liquid/releases) - [Changelog](https://github.com/Shopify/liquid/blob/master/History.md) - [Commits](https://github.com/Shopify/liquid/compare/v4.0.3...v5.0.0) Signed-off-by: dependabot[bot] <support@github.com> * Convert ActiveSupport::SafeBuffer to string * Disable echo and render tags * Disable liquid tag * Add issue link Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: rhymes <rhymes@hey.com>
12 lines
442 B
Ruby
12 lines
442 B
Ruby
require "rails_helper"
|
|
|
|
# Liquid::Render is disabled by default
|
|
# but we want to make sure it's always disabled in the future with an automatic test
|
|
|
|
RSpec.describe Liquid::Render, type: :lib do
|
|
it "uses the blank file system and it's always disabled" do
|
|
expect(Liquid::Template.file_system).to be_a(Liquid::BlankFileSystem)
|
|
|
|
expect { Liquid::Template.parse('{% render "template_name" %}') }.to raise_error(StandardError)
|
|
end
|
|
end
|