I don't think that you need to do such unit tests, without mounting an engine you will not be able to reach engine's routes, so tests will fail anyway.
> Yeah i have spent the last week trying to mount an app Remember that this is still an edge version and some things can (and probably will) change. I didn't want to go with detailed guides before finishing work on new generator. Short story of creating mountable engine right now: # clone rails app and install dependencies git clone git://github.com/rails/rails.git cd rails bundle install # generate engine with routes and test dummy with engine already mounted bundle exec ./bin/rails plugin new /path/to/engine_name --dev -- mountable cd /path/to/engine_name bundle install # generate scaffold to test it ./script/rails generate scaffold post title:string content:text # run migrations cd test/dummy rake engine_name:install:migrations rake db:migrate ./script/rails s navigate to localhost:3000/engine_name/posts Testing is done using test/dummy. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
