opal-rspec questions

38 views
Skip to first unread message

Thijs de Vries

unread,
Apr 3, 2014, 9:18:59 PM4/3/14
to opa...@googlegroups.com
Hello,
Is it possible to run rake specs (or browser specs for that matter) if spec files are not in spec directory? I like to reserver spec directory for MRI level specs. Also, is it possible to run specs in browser mounted to a path other than the root path? I would love to do localhost:9292/spec or something instead.
Thijs

Elia Schito

unread,
Apr 4, 2014, 8:20:23 AM4/4/14
to opa...@googlegroups.com
opal-rails does just that on localhost:3000/opal_rspec

You can try to look at how it's done there, but basically I think you just need to mount the specs Opal::Server on a different path with rack

and probably also you need to have a different main file that searches for specs in another path


--
You received this message because you are subscribed to the Google Groups "opalrb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opalrb+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages