mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 00:55:11 -07:00
Fix CI
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@ LiquidSpec.configure do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Compile a template string into a Liquid::Template
|
# Compile a template string into a Liquid::Template
|
||||||
LiquidSpec.compile do |ctx, source, options|
|
LiquidSpec.compile do |_ctx, source, options|
|
||||||
Liquid::Template.parse(source, **options)
|
Liquid::Template.parse(source, **options)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ end
|
|||||||
# @param template [Liquid::Template] compiled template
|
# @param template [Liquid::Template] compiled template
|
||||||
# @param assigns [Hash] environment variables
|
# @param assigns [Hash] environment variables
|
||||||
# @param options [Hash] :registers, :strict_errors, :exception_renderer
|
# @param options [Hash] :registers, :strict_errors, :exception_renderer
|
||||||
LiquidSpec.render do |ctx, template, assigns, options|
|
LiquidSpec.render do |_ctx, template, assigns, options|
|
||||||
registers = Liquid::Registers.new(options[:registers] || {})
|
registers = Liquid::Registers.new(options[:registers] || {})
|
||||||
|
|
||||||
context = Liquid::Context.build(
|
context = Liquid::Context.build(
|
||||||
|
|||||||
@@ -12,14 +12,14 @@ LiquidSpec.configure do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Compile a template string into a Liquid::Template
|
# Compile a template string into a Liquid::Template
|
||||||
LiquidSpec.compile do |ctx, source, options|
|
LiquidSpec.compile do |_ctx, source, options|
|
||||||
# Force lax mode
|
# Force lax mode
|
||||||
options = options.merge(error_mode: :lax)
|
options = options.merge(error_mode: :lax)
|
||||||
Liquid::Template.parse(source, **options)
|
Liquid::Template.parse(source, **options)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Render a compiled template with the given context
|
# Render a compiled template with the given context
|
||||||
LiquidSpec.render do |ctx, template, assigns, options|
|
LiquidSpec.render do |_ctx, template, assigns, options|
|
||||||
registers = Liquid::Registers.new(options[:registers] || {})
|
registers = Liquid::Registers.new(options[:registers] || {})
|
||||||
|
|
||||||
context = Liquid::Context.build(
|
context = Liquid::Context.build(
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ LiquidSpec.configure do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Compile a template string into a Liquid::Template
|
# Compile a template string into a Liquid::Template
|
||||||
LiquidSpec.compile do |ctx, source, options|
|
LiquidSpec.compile do |_ctx, source, options|
|
||||||
Liquid::Template.parse(source, **options)
|
Liquid::Template.parse(source, **options)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ end
|
|||||||
# @param template [Liquid::Template] compiled template
|
# @param template [Liquid::Template] compiled template
|
||||||
# @param assigns [Hash] environment variables
|
# @param assigns [Hash] environment variables
|
||||||
# @param options [Hash] :registers, :strict_errors, :exception_renderer
|
# @param options [Hash] :registers, :strict_errors, :exception_renderer
|
||||||
LiquidSpec.render do |ctx, template, assigns, options|
|
LiquidSpec.render do |_ctx, template, assigns, options|
|
||||||
registers = Liquid::Registers.new(options[:registers] || {})
|
registers = Liquid::Registers.new(options[:registers] || {})
|
||||||
|
|
||||||
context = Liquid::Context.build(
|
context = Liquid::Context.build(
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ LiquidSpec.configure do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Compile a template string into a Liquid::Template
|
# Compile a template string into a Liquid::Template
|
||||||
LiquidSpec.compile do |ctx, source, options|
|
LiquidSpec.compile do |_ctx, source, options|
|
||||||
# Force strict mode
|
# Force strict mode
|
||||||
options = { error_mode: :strict }.merge(options)
|
options = { error_mode: :strict }.merge(options)
|
||||||
Liquid::Template.parse(source, **options)
|
Liquid::Template.parse(source, **options)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Render a compiled template with the given context
|
# Render a compiled template with the given context
|
||||||
LiquidSpec.render do |ctx, template, assigns, options|
|
LiquidSpec.render do |_ctx, template, assigns, options|
|
||||||
registers = Liquid::Registers.new(options[:registers] || {})
|
registers = Liquid::Registers.new(options[:registers] || {})
|
||||||
|
|
||||||
context = Liquid::Context.build(
|
context = Liquid::Context.build(
|
||||||
|
|||||||
Reference in New Issue
Block a user