2015-03-17 06:54:33 +00:00
|
|
|
-- moonscript module
|
|
|
|
|
2015-09-27 02:31:01 +00:00
|
|
|
import with_dev from require "spec.helpers"
|
|
|
|
|
2015-03-17 06:54:33 +00:00
|
|
|
describe "moonscript.base", ->
|
2015-09-27 02:31:01 +00:00
|
|
|
with_dev!
|
|
|
|
|
2015-03-17 06:54:33 +00:00
|
|
|
it "should create moonpath", ->
|
|
|
|
path = ";./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.luac;/home/leafo/.luarocks/lua/5.1/?.lua"
|
|
|
|
import create_moonpath from require "moonscript.base"
|
|
|
|
assert.same "./?.moon;/usr/share/lua/5.1/?.moon;/usr/share/lua/5.1/?/init.moon;/home/leafo/.luarocks/lua/5.1/?.moon", create_moonpath(path)
|
|
|
|
|