docbrown/spec/lib/liquid/echo_spec.rb
dependabot[bot] a63ba17b6a
Bump liquid from 4.0.3 to 5.0.0 (#12150)
* 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>
2021-01-15 15:37:42 -06:00

10 lines
315 B
Ruby

require "rails_helper"
# Liquid::Echo internally uses Liquid::Variable which we disable,
# but we want to make sure it always is disabled in turn
RSpec.describe Liquid::Echo, type: :lib do
it "is disabled" do
expect { Liquid::Template.parse("{% echo something %}") }.to raise_error(StandardError)
end
end