Test libraries

12 views
Skip to first unread message

Marcus Ahnve

unread,
Nov 9, 2010, 4:49:36 AM11/9/10
to ruby-ev...@googlegroups.com
Hi,

where would you suggest placing test libraries such as a mock
framework? I am trying to require a library like this:

require('/../spec/javascripts/lib/ewloe.js');

but it is not picked up.

/Marcus

--
Marcus Ahnve
http://marcus.ahnve.net
phone: +46 8 56 22 33 94
twitter: mahnve

Jonas Nicklas

unread,
Nov 9, 2010, 7:32:09 AM11/9/10
to ruby-ev...@googlegroups.com
Good question, I can't come up with a very good mechanism for that off
the top of my head. You could place them in the public directory, but
that would obviously not be so ideal. There's really no good way of
requiring files from the spec directory right now.

/Jonas

P.S.: Jasmine has a mocking library built in, just so you know. It's
worked very well for my purposes.

Reply all
Reply to author
Forward
0 new messages