cbeer / engine_cart

Rake tasks to generate test applications for Rails Engines
MIT License
18 stars 16 forks source link

Allow args for `rails new TEST_APP` #7

Closed jeremyf closed 10 years ago

jeremyf commented 10 years ago

This may be my ignorance about the asset pipeline, but I'm working at extracting capybara features from a Rails application into a corresponding Rails engine.

ActionView::Template::Error:
       couldn't find file 'jquery'
         (in ./spec/internal/app/assets/javascripts/application.js:13)

My work around is to add the following to the TestAppGenerator:

  def create_javascript_shims
    create_file 'app/assets/javascripts/jquery.js'
    create_file 'app/assets/javascripts/jquery_ujs.js'
    create_file 'app/assets/javascripts/turbolinks.js'
  end

It would be nice if I could configure EngineCart to specify the args for rake engine_cart:generate