diff --git a/spec/ruby_liquid.rb b/spec/ruby_liquid.rb index 062e635f..8d7f651b 100644 --- a/spec/ruby_liquid.rb +++ b/spec/ruby_liquid.rb @@ -13,7 +13,7 @@ LiquidSpec.configure do |config| end # 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) end @@ -22,7 +22,7 @@ end # @param template [Liquid::Template] compiled template # @param assigns [Hash] environment variables # @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] || {}) context = Liquid::Context.build( diff --git a/spec/ruby_liquid_lax.rb b/spec/ruby_liquid_lax.rb index b9fc497a..79f4518c 100644 --- a/spec/ruby_liquid_lax.rb +++ b/spec/ruby_liquid_lax.rb @@ -12,14 +12,14 @@ LiquidSpec.configure do |config| end # Compile a template string into a Liquid::Template -LiquidSpec.compile do |ctx, source, options| +LiquidSpec.compile do |_ctx, source, options| # Force lax mode options = options.merge(error_mode: :lax) Liquid::Template.parse(source, **options) end # 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] || {}) context = Liquid::Context.build( diff --git a/spec/ruby_liquid_with_active_support.rb b/spec/ruby_liquid_with_active_support.rb index ab1ada37..b577668d 100644 --- a/spec/ruby_liquid_with_active_support.rb +++ b/spec/ruby_liquid_with_active_support.rb @@ -14,7 +14,7 @@ LiquidSpec.configure do |config| end # 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) end @@ -23,7 +23,7 @@ end # @param template [Liquid::Template] compiled template # @param assigns [Hash] environment variables # @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] || {}) context = Liquid::Context.build( diff --git a/spec/ruby_liquid_yjit.rb b/spec/ruby_liquid_yjit.rb index e34e0abb..d30afb8a 100644 --- a/spec/ruby_liquid_yjit.rb +++ b/spec/ruby_liquid_yjit.rb @@ -19,14 +19,14 @@ LiquidSpec.configure do |config| end # Compile a template string into a Liquid::Template -LiquidSpec.compile do |ctx, source, options| +LiquidSpec.compile do |_ctx, source, options| # Force strict mode options = { error_mode: :strict }.merge(options) Liquid::Template.parse(source, **options) end # 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] || {}) context = Liquid::Context.build(