aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/assets_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Be consistent in testing outputs from railties test and use /bin/rails ↵Vipul A M2016-01-241-2/+2
| | | | | | everywhere(the default behaviour now) instead of mix of /bin/rake /bin/rails everywhere [Ryo Hashimoto & Vipul A M]
* Fix warningRafael Mendonça França2015-12-171-1/+1
|
* Fix test now that cable is in there by default tooDavid Heinemeier Hansson2015-12-161-1/+1
|
* Use sprockets 3 in the Rails 5 releaseRafael Mendonça França2015-12-161-4/+4
|
* Replace `serve_static_files` in tests with `public_file_server.enabled`.Kasper Timm Hansen2015-11-041-1/+1
| | | | Forgot to do it in 748b2f9, when deprecating `serve_static_files`.
* Eliminate overlapping `app/assets` load pathJeremy Daer2015-09-291-48/+63
| | | | | | | | | | * Move `app/assets/manifest.js` to `app/assets/config/manifest.js`. Avoid the suggestion that you can/should deep-link `stylesheets/foo`. * Pull in all toplevel stylesheets and JavaScripts, not just `application.js` and `.css`. Demonstrate how to use `link_directory` with a specified `.js`/`.css` type. * Fix RAILS_ENV handling in assets tests. * Shush warnings spam from third-party libs that distract from tests.
* Migrate to Sprockets 4.Andrei Istratii2015-08-191-11/+17
|
* Fix reported regression rails/sprockets-rails#265schneems2015-07-291-0/+1
| | | | We can prevent the UglifierCompressor from being instantiated prematurely by setting precompile to an empty array in this test.
* tests, railties tests should use `bin/` executables when possible.Yves Senn2015-06-301-2/+2
| | | | | We recommend using the `bin/` executables in our docs and guides. Let's make sure that our tests execute the same code path.
* Need to add config.assets.compile=true to access `.assets`Arthur Neves2015-04-261-0/+1
| | | | | | sprockets-rails will only add `Rails.application.assets` if compile is no false. See change on sprockets-rails https://github.com/rails/sprockets-rails/commit/d7c7ee19991c565eb77ee143be2d009ba4472122
* assets:cache:clean wont clean cache anymoreArthur Neves2015-04-261-11/+0
| | | | | See the behaviour change on sprockets-rails https://github.com/rails/sprockets-rails/commit/56725e5843662189c6701478f7598db306d5fb02
* Test using sprockets 3Rafael Mendonça França2015-03-291-7/+7
|
* Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵Vipul A M2015-02-031-1/+0
| | | | onwards.
* Merge pull request #18100 from chancancode/serve_static_filesGodfrey Chan2014-12-191-1/+1
| | | | | | Allow static asset serving from env variable (enhanced!) Conflicts: railties/CHANGELOG.md
* Default config.assets.digests to true in developmentDan Kang2014-05-171-14/+11
|
* Precompile the image we're referencing, too.Matthew Draper2014-04-241-2/+2
| | | | | | | | | | You can't compile a file that references a non-compiled asset's path. .. unless you turn off asset runtime errors. Outside of a test case like this, `config.assets.precompile` would normally retain its default entry, which precompiles all images (and other non-JS/CSS files) that are in `app/assets`.
* depend_on_asset is not required anymore on sprockets-rails 2.1.2Rafael Mendonça França2014-04-091-6/+6
|
* Declare the assets dependencyRafael Mendonça França2014-04-041-7/+8
|
* More Warnings removed for ruby trunkArun Agrawal2013-11-011-1/+1
| | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
* Fix typos: the indefinite articles(a -> an)SUGINO Yasuhiro2013-09-131-2/+2
|
* #11381: Ignore config.eager_load=true for rakePaul Nikitochkin2013-07-101-1/+1
| | | | Closes #11381
* #10428: Added tests for config.assets.precompilePaul Nikitochkin2013-06-211-0/+23
| | | | | | Tests for bug in sprocket-rails: do not use value of configuration options which changed after environment loaded
* Merge pull request #10902 from wangjohn/removing_application_singleton_callsSantiago Pastorino2013-06-171-3/+3
|\ | | | | Calls to the application constant have been refactored
| * Calls to the application constant have been refactored to usewangjohn2013-06-101-3/+3
| | | | | | | | | | Rails.application when drawing routes and creating other configurations on the application.
* | `initialize_on_precompile` is not used anymore.Terence Lee2013-06-131-12/+0
|/
* Fix tests from rails.png removal.Jessica Lynn Suttles2013-04-021-1/+8
| | | | | I'm giving @jlsuttles credit on this commit because she gave me the idea and the actual converted image in 952289aabfb.
* s/and and run/and runs/David Chapman2013-03-261-1/+1
| | | | Fixing some typos/grammar.
* Controller name pluralizedPrathamesh Sonpatki2013-03-251-2/+2
|
* Fix usage of lambda as a Rack endpointJiri Pospisil2012-12-311-1/+1
| | | | The response body needs to respond_to? :each.
* asset compilation should not require a database connectionAaron Patterson2012-11-131-0/+26
|
* Small change to remove warning unused variable.Arun Agrawal2012-11-011-1/+1
|
* Switch to new sprockets-rails pluginJoshua Peek2012-10-151-126/+52
|
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-3/+3
|
* Tighten up asset precompile testsJeremy Kemper2012-10-121-1/+1
|
* Remove duplicated testGuillermo Iguaran2012-10-091-15/+0
|
* Assets cache shouldn't be shared between different environmentsGuillermo Iguaran2012-09-281-1/+2
|
* Update asset test to match one in sprockets-railsGuillermo Iguaran2012-09-211-2/+5
|
* Use last version of sprockets-rails and syncing tests for assets.Dmitry Vorotilin2012-09-191-32/+35
|
* Rake assets:precompile shouldn't fail quietly.Dmitry Vorotilin2012-09-111-7/+4
| | | | We should show to user original issue if rake task will be aborted.
* &#39 dates back to SGML when &#x27 was introduced in HTML 4.0Kalys Osmonov2012-09-091-2/+2
|
* make assertions easier to track downAaron Patterson2012-08-071-9/+17
|
* Fix tests.Rafael Mendonça França2012-08-021-2/+2
| | | | | Since b6ab4417720e03f1551abda2f1e4bd0a392dd04e the single quotes are being escaped in the templates.
* bundle exec rake assets:precompile shouldn't fail quietly.John Yani2012-06-051-17/+24
| | | | | | | | | If JavaScript runtime is not installed, execjs fails with error quietly, while tests continue to run. This should not happen since it causes tests to fail for unknown reason (#6621). This commit assures that if JavaScript runtime is not installed, an assertion is raised.
* Remove default match without specified methodJose and Yehuda2012-04-241-5/+5
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* Fix a couple more script[type=text/javascript] tests affected by #5748Jeremy Kemper2012-04-081-4/+4
|
* fix assets testSergey Nartimov2012-01-311-1/+1
|
* Fix GH #3980. Support assets:cache:clean method to respect sprockets cache.kennyj2012-01-131-1/+13
|
* Remove dead codeSantiago Pastorino2012-01-101-4/+0
|
* Rails initialization with initialize_on_precompile = false should set assets_dirSantiago Pastorino2012-01-101-0/+6
|
* convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|