Created
August 27, 2012 08:47
-
-
Save phpnode/3486740 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Promise to load a file from the file system | |
# Requirements: | |
# it "should load aliased files correctly", (done) -> | |
# app.load("@lib/Invoke.coffee") | |
# .then (contents) -> | |
# contents.should.contain "this unique text that you are reading right now" | |
# done() | |
# .otherwise (err) -> | |
# throw err | |
# | |
load: (name, refresh = false) => | |
if name.charAt(0) is "@" | |
name = Invoke.aliasPath name | |
@loader.load name, refresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment