mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Fix rubocop: rename ruby-liquid.rb to ruby_liquid.rb and add trailing comma
This commit is contained in:
@@ -52,7 +52,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
bundler: latest
|
bundler: latest
|
||||||
- run: bundle exec liquid-spec run spec/ruby-liquid.rb --no-max-failures
|
- run: bundle exec liquid-spec run spec/ruby_liquid.rb --no-max-failures
|
||||||
|
|
||||||
memory_profile:
|
memory_profile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Liquid Spec Adapter for Shopify/liquid (Ruby reference implementation)
|
# Liquid Spec Adapter for Shopify/liquid (Ruby reference implementation)
|
||||||
#
|
#
|
||||||
# Run with: bundle exec liquid-spec run spec/ruby-liquid.rb
|
# Run with: bundle exec liquid-spec run spec/ruby_liquid.rb
|
||||||
|
|
||||||
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
|
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
|
||||||
require 'liquid'
|
require 'liquid'
|
||||||
@@ -25,7 +25,7 @@ LiquidSpec.render do |template, ctx|
|
|||||||
context = Liquid::Context.build(
|
context = Liquid::Context.build(
|
||||||
static_environments: ctx.environment,
|
static_environments: ctx.environment,
|
||||||
registers: registers,
|
registers: registers,
|
||||||
rethrow_errors: ctx.rethrow_errors?
|
rethrow_errors: ctx.rethrow_errors?,
|
||||||
)
|
)
|
||||||
|
|
||||||
context.exception_renderer = ctx.exception_renderer if ctx.exception_renderer
|
context.exception_renderer = ctx.exception_renderer if ctx.exception_renderer
|
||||||
Reference in New Issue
Block a user