mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Test helper
- extras path now uses File.join instead of string concatenation - extras path is only loaded into $LOAD_PATH if it's not already part of it
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
$LOAD_PATH.unshift(File.dirname(__FILE__)+ '/extra')
|
extras_path = File.join File.dirname(__FILE__), 'extra'
|
||||||
|
$LOAD_PATH.unshift(extras_path) unless $LOAD_PATH.include? extras_path
|
||||||
|
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/unit/assertions'
|
require 'test/unit/assertions'
|
||||||
|
|||||||
Reference in New Issue
Block a user