Closed luxerama closed 11 years ago
I share this concern, would love to have this working.
i vote for this as well.
I have the same issue. I cannot run "rails g jasminerice:install" on a rails engine. It returns "Error: uninitialized constant Jasminerice". Would love to see that feature as Rails Engine are more and more used.
UPDATE: there is an article ( http://n-so.com/blog/2012/09/08/using-jasminerice-to-test-coffeescript-in-a-rails-engine/ ) which helps working around that issue. I tried it and it works fine.
Thanks for the link. I'll be writing a wiki article about this shortly.
Unfortunately this is currently not working when used in a mountable engine.
now lets go into the engine root
cd gaja
lets bundle and generate
bundle && guard init jasmine
, now create the necessary files and dirsnow lets give it a go
test/dummy/script/rails s
,going to
http://localhost:3000/jasmine
andhttp://localhost:3000/gaja/jasmine
returnsNo route matches [GET] "/jasmine"
andNo route matches [GET] "/gaja/jasmine"
respectivelyGuard encounters the following problem: