aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/railties
Commit message (Collapse)AuthorAgeFilesLines
* Failing test for #6388Eric Allam2011-02-091-0/+28
|
* remove locales external to the system before assertionAaron Patterson2011-01-121-5/+5
|
* Do not take gems' i18n locales while testing locales pathsPiotr Sarnacki2010-12-311-2/+8
|
* More love for engines testsPiotr Sarnacki2010-12-191-73/+61
|
* Use assert_bodyJohn Firebaugh2010-12-191-22/+14
|
* Temporary fix for railties test for newest rack changesPiotr Sarnacki2010-12-191-0/+8
|
* Fix tests in railtiesPiotr Sarnacki2010-12-182-13/+13
|
* Set proper engine's asset directories when assets are served from engine.Piotr Sarnacki2010-12-161-0/+64
| | | | | | | | | When using stylesheet_link_tag(:all) or javascript_include_tag(:all), assets directories are searched for css or js files. When config.serve_static_assets is set to true, those files can be served directly from engine's directories. That's why assets paths should be set individually for controllers inside engine if we want to serve static assets with ActionDispatch::Static
* Rails::Engine.find(path) - method to find engine by pathPiotr Sarnacki2010-12-091-0/+19
|
* Do not create table_name_prefix method on isolated module if the method ↵Piotr Sarnacki2010-11-221-0/+19
| | | | | | already exists. Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix failing tests.José Valim2010-11-161-29/+7
|
* Make deep copy of application generators on engine initialization.Piotr Sarnacki2010-11-021-0/+3
| | | | | Otherwise nested hashes will be same objects for both application and engine, which will result in overwriting each others values on changes.
* Use application's generators defaults as engine defaults to not force users ↵Piotr Sarnacki2010-11-021-0/+17
| | | | to manually set it
* Remove task for creating symlinks for railtiesPiotr Sarnacki2010-10-141-57/+0
|
* Add task foo:install (where foo is plugin) as a shortcutinstall:migrations ↵Piotr Sarnacki2010-10-141-0/+24
| | | | and foo:install:assets
* Added foo:install:assets task that copies assets from plugins public ↵Piotr Sarnacki2010-10-141-0/+14
| | | | | | | | | | | directory to application's public directory This is the most simple and naive approach: just copy every files from engine to app. The only exception is when file has changed, in that case developer will be asked if he wants to rename the field. There is no need to make this task more sophisticated as 3.1 will be shipped with better assets handling and it will be the default way to handle things.
* Do not treat information about skipped migrations as WARNINGs but as a ↵Piotr Sarnacki2010-10-141-5/+5
| | | | NOTEs, also puts to stdin
* Add 'foo:install:migrations' task to copy migrations from foo enginePiotr Sarnacki2010-10-091-1/+1
|
* Load rake tasks defined in superclasses in context of railtiesPiotr Sarnacki2010-10-091-0/+24
|
* Rename rake railties:copy_migrations to rake railties:install:migrations and ↵Piotr Sarnacki2010-10-091-10/+17
| | | | fix it to work with new copying strategy
* Rename namespace method to isolate_namespace.Piotr Sarnacki2010-10-092-9/+9
| | | | | | | This change caused by confusion caused by calling engine "namespaced". Stuff inside engine can be namespaced for every engine. This method is not actually namespacing anything, it's isolating engine within the given namespace.
* Fix engines testPiotr Sarnacki2010-10-081-1/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensure rack body responds to each.José Valim2010-10-081-3/+2
|
* Add "a" to make it better EnglishRyan Bigg2010-10-071-1/+1
| | | | | | [#3796 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-4/+4
| | | | method_missing.
* Don't expect an AD::Response object back from the app.José Valim2010-10-051-11/+10
|
* Added config.app_generators to allow configuring application's generators ↵Piotr Sarnacki2010-09-301-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from railties. With config.generators becomes a way to configure generators for current instance only. For example: module Blog class Engine < Rails::Engine config.generators do |g| g.orm :active_record end config.app_generators do |g| g.test_framework :rspec end end end such definition sets :active_record as orm for engine and :rspec as test_framework for application. The values set with app_generators can be overwritten in application using config.generators as you would normally do: module MyApp class Application < Rails::Application config.generators do |g| g.test_framework :test_unit end end end
* Properly reload routes defined in class definitionPiotr Sarnacki2010-09-301-0/+40
| | | | | | | | | | | | | | | | | Sometimes it's easier to define routes inside Engine or Application class definition (e.g. one file applications). The problem with such case is that if there is a plugin that has config/routes.rb file, it will trigger routes reload on application. Since routes definition for application is not in config/routes.rb file routes_reloader will fail to reload application's routes properly. With this commit you can pass routes definition as a block to routes method, which will allow to properly reload it: class MyApp::Application < Rails::Application routes do resources :users end end
* Do not overwrite _railtie method on namespace while creating isolated engine ↵Piotr Sarnacki2010-09-301-0/+20
| | | | | | | | | or application. In order to run Engine as standalone application, you will need Rails::Application instance in the same namespace that engine one. It's very important to leave _railtie bound to whatever used "namespace" method first.
* Add helper for loading seed data for engine and applicationPiotr Sarnacki2010-09-201-0/+19
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix running engine_test in isolationPiotr Sarnacki2010-09-191-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove unnecessary putsPiotr Sarnacki2010-09-191-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move capture to Kernel. [#5641 state:resolved]Krekoten' Marjan2010-09-181-13/+1
|
* Add tests for Rack::CacheCarlhuda2010-09-131-4/+13
|
* Set default asset_path only for enginePiotr Sarnacki2010-09-101-0/+28
|
* Change app to main_app in mounted_helpersPiotr Sarnacki2010-09-082-3/+3
|
* Use railties:copy_migrations instead of db:copy_migrationsPiotr Sarnacki2010-09-061-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Added task for creating symlinks to engines' public directoriesPiotr Sarnacki2010-09-061-0/+57
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removed deprecated router API from railtiesPiotr Sarnacki2010-09-052-3/+3
|
* Remove more deprecated behavior from plugins.José Valim2010-09-041-27/+0
|
* Fixed tests after rebasePiotr Sarnacki2010-09-031-4/+3
|
* I've changed that test along the way, it should actually stay without changesPiotr Sarnacki2010-09-031-2/+9
|
* Use default_scope in isolated Engines to not force user to scope his routesPiotr Sarnacki2010-09-032-16/+10
|
* Remove namespace for isolated namespaced models in formsPiotr Sarnacki2010-09-031-1/+64
|
* Add possibility to explicitly call engine's routes through ↵Piotr Sarnacki2010-09-031-0/+30
| | | | polymorphic_routes, for example: polymorphic_url([blog, @post])
* Updated tests to use scope(:module => :engine_name) instead of namespace and ↵Piotr Sarnacki2010-09-032-23/+28
| | | | updated mounted engine tests to actually use the namespacing
* Include all helpers from non-namespaced enginesPiotr Sarnacki2010-09-031-1/+18
|
* Modified polymorphic_url to check for model's namespacePiotr Sarnacki2010-09-031-4/+30
| | | | | | | | | | | This change allows using namespaced models with polymorphic_url, in the way that you would use them without namespace. Let's say that you have Blog::Post model in namespaced Engine. When you use polymorphic_path with Blog::Post instances, like in form_for(@post), it will look for blog_posts_path named url helper. As we are inside Blog::Engine, it's annoying to always use the prefix. With this commit, blog_ prefix will be removed and posts_path will be called.
* Get rid of static_paths method and instead configure paths for ↵Piotr Sarnacki2010-09-031-0/+5
| | | | ActionDispatch::Static in initializers
* Add table_name_prefix to Engine's namespace automaticallyPiotr Sarnacki2010-09-031-0/+2
|