aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/sprockets_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Pass extensions to javascript_path and stylesheet_path helpers. Closes #3417Santiago Pastorino2012-01-031-0/+6
|
* Add font_path helper methodSantiago Pastorino2012-01-031-0/+20
|
* Handle correctly optional parameters for callable asset_host.Marc-Andre Lafortune2011-11-291-0/+8
|
* javascript_include_tag should add '.js' to sources that contain '.'lest2011-11-221-0/+3
|
* stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't ↵Santiago Pastorino2011-10-051-0/+5
| | | | throw Sprockets::FileOutsidePaths exception anymore
* Fix the lame config.action_controller.present? check scattered throughout ↵José Valim2011-10-051-6/+9
| | | | | | | | assets_path. Conflicts: actionpack/test/template/sprockets_helper_test.rb
* Ensure default_asset_host_protocol is respected, closes #2980.José Valim2011-10-051-2/+4
|
* javascript_path and stylesheet_path should honor the asset pipeliningSantiago Pastorino2011-09-281-2/+18
|
* Correctly override image_path in sprockets rails_helperChristos Zisopoulos2011-09-261-0/+8
|
* Just assert_equal hereSantiago Pastorino2011-09-261-1/+1
|
* Merge pull request #3135 from christos/respect_assets_digest_valueSantiago Pastorino2011-09-261-0/+8
|\ | | | | Give precedence to `config.digest = false` over the existence of manifest.yml asset digests
| * Give precedence to `config.digest = false` over manifest.yml asset digestsChristos Zisopoulos2011-09-261-0/+8
| |
* | image_tag should use /assets if asset pipelining is turned on. Closes #3126Santiago Pastorino2011-09-261-0/+4
|/
* Fixes #1489 again, with updated code and numerous tests to confirmdocunext2011-09-221-0/+10
|
* Allow asset tag helper methods to accept :digest => false option in order to ↵Santiago Pastorino2011-09-141-16/+28
| | | | completely avoid the digest generation.
* Set relative url root in assets when controller isn't available for ↵Guillermo Iguaran2011-09-131-0/+7
| | | | | | Sprockets. Fix #2435 See https://github.com/rails/sass-rails/issues/42 for details
* Backport f443f9cb0c64 to masterGuillermo Iguaran2011-08-311-2/+4
|
* Merge pull request #2644 from guilleiguaran/allow-assets-debuggingSantiago Pastorino2011-08-241-0/+2
|\ | | | | Add config.allow_debugging option
| * Add config.allow_debugging option to determine if the debug_assets query ↵Guillermo Iguaran2011-08-241-0/+2
| | | | | | | | param can be passed by user
* | Debug assets shouldn't ignore media type for stylesheets. Closes #2625Guillermo Iguaran2011-08-231-0/+3
|/
* Allow to debug assets by config.assets.debugAndrey A.I. Sitnik2011-08-221-14/+6
|
* Debug assets by default in development and test environmentsGuillermo Iguaran2011-08-181-6/+22
|
* generate environment dependent asset digestsIlya Grigorik2011-08-041-0/+13
| | | | | | If two different environments are configured to use the pipeline, but one has an extra step (such as compression) then without taking the environment into account you may end up serving wrong assets
* Instead of removing the instance variable just set it to nil, resolves the ↵Brian Cardarella2011-07-291-2/+2
| | | | warnings because of a missing instance variable
* use sprocket's append_path and assert_matchDamien Mathieu2011-07-261-26/+26
|
* no need for an anonymous class on every setup callAaron Patterson2011-07-251-10/+9
|
* just use normal ruby for stubbingAaron Patterson2011-07-231-5/+3
|
* Simple fix to the NoMethodError noted in #2177.Ben Woosley2011-07-231-1/+0
| | | Unfortunately #respond_to?(:controller) won't work as suggested, nor will respond_to?(:params), as #controller is present and #params is delegated to #controller. #delegate makes respond_to? return true regardless whether the target responds to it.
* Add tests for alternate asset prefix/environmentSam Pohlenz2011-07-011-0/+12
|
* Added a configuration setting:Chris Eppstein2011-06-271-1/+18
| | | | | | | | | | | | | | | | | | | | | | config.action_controller.default_asset_host_protocol It's best to leave this unset. When unset the :request protocol is used whenever it can be and :relative is used in the other situations. When set to :request then assets hosts will be disabled when there is no request in scope and will use the request protocol whenever a request is in scope. If set to :relative, then a relative protocol is always used except for stylesheet link tags which must use the :request protocol to avoid double downloads in IE6&7. Conflicts: actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb
* Add asset_url helper and refactor the asset paths so that asset hosts can be ↵Chris Eppstein2011-06-271-4/+50
| | | | | | | | | | used during asset precompilation. Conflicts: actionpack/lib/action_view/asset_paths.rb actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb
* Allow multiple sources in Sprockets helpersGuillermo Iguaran2011-06-051-0/+6
|
* Fix typo in test.Andrés Botero2011-05-281-1/+1
|
* fixed asset_paths when called from sprockets for relative_url_rootjacott2011-05-281-0/+6
|
* Move the last pockets of Sprockets stuff into the Sprockets directorywycats2011-05-231-2/+1
|
* Move javascript/css helpers into the Sprockets helper and just have them ↵wycats2011-05-231-12/+12
| | | | override the old behavior
* Start moving some logic from being embedded in AV into the Rails Sprockets ↵wycats2011-05-231-0/+2
| | | | extensions
* We don't need to load version any more as Sprockets.beta8 is included. Arun Agrawal2011-05-231-7/+0
|
* Merge branch '3-1-stable'Joshua Peek2011-05-221-2/+9
|\ | | | | | | | | | | Conflicts: actionpack/actionpack.gemspec activemodel/activemodel.gemspec
| * Add debug_asset supportJoshua Peek2011-05-221-2/+9
| |
* | Make sure that we're able to run Action Pack test standalone.Prem Sichanugrist2011-05-221-2/+7
|/ | | | | | | | Sprocket was trying to look for these two things: * `Rails::VERSION::STRING` * `.initializer(str)` in `Rails::Engine` This commit added require to version.rb into Abstract Unit, and mocking the `Rails::Engine.initializer` in `sprockets_helper_test.rb`
* Replace example hostname with "example.com".Joost Baaij2011-04-211-12/+12
| | | | | The hostname used in these comments actually exists, which is undesirable. See also RFC 2606.
* Let's use inheritance here, shall we?José Valim2011-04-191-0/+8
|
* Switch to asset_path and make it available in the Sprockets::Context (now ↵David Heinemeier Hansson2011-04-191-22/+18
| | | | you can do asset_path("logo.png") in a stylesheet.css.erb file and get fingerprinting)
* All assets, including images, audio, and video, now uses the asset pipeline ↵David Heinemeier Hansson2011-04-191-0/+19
| | | | when its on
* Seperate asset directoriesJoshua Peek2011-03-291-15/+18
|
* Tests for SprocketsHelperJoshua Peek2011-03-291-0/+93