aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
* Typo and grammatical fixes [ci skip]Akshay Vishnoi2013-12-021-2/+2
|
* Typo fixes [ci skip]Akshay Vishnoi2013-11-301-1/+1
|
* Test for when controller with skip-assetsArun Agrawal2013-11-231-0/+6
|
* Added test when task generator called on revokeArun Agrawal2013-11-231-1/+13
|
* Merge pull request #13011 from arunagw/jruby-fixesYves Senn2013-11-231-2/+10
|\ | | | | Using activerecord-jdbcsqlite3-adapter
| * Using activerecord-jdbcsqlite3-adapterArun Agrawal2013-11-231-2/+10
| | | | | | | | | | PluginGeneratorTest needs to have activerecord-jdbcsqlite3-adapter to pass under JRuby
* | Cleaned up app generator testArun Agrawal2013-11-231-21/+6
|/
* Use a more generic assertion to make sure this tests will be useful.Rafael Mendonça França2013-11-221-3/+2
| | | | | | Since we are using assert_no_match, if we change the code before changing the tests, the tests will still pass and the assertion will become useless
* Fix the assertion for not inclusion of turbolinks on application.js.Lauro Caetano2013-11-221-1/+1
| | | | | We were asserting if `//= turbolinks` was not present while the correct is asserting that `//= require turbolinks` is not present.
* Build fix for new routing inspector changesArun Agrawal2013-11-221-2/+2
| | | | | | Broken by 6701b4cf41f6f3d9cfc6a93715acbf852d1e468e
* Remove turbolinks when generating a new application based on a templateLauro Caetano2013-11-211-3/+10
| | | | | | that skips it. It can be skipped adding `add_gem_entry_filter { |gem| gem.name != "turbolinks" }` to the template.
* Merge pull request #12975 from sbagdat/fix-for-rake-routesYves Senn2013-11-211-2/+2
|\ | | | | Fix for routes task
| * Fix for routes taskSıtkı Bağdat2013-11-211-2/+2
| | | | | | | | This commit fixes formatting issue for `rake routes` task, when a section is shorter than a header.
* | replace U+00A0 with whitespaceDmitriy Budnik2013-11-211-1/+1
|/
* added test cases to find notes in a file with .builder extensionKuldeep Aggarwal2013-11-171-1/+3
|
* Build fix for ruby 1.9.3 syntaxArun Agrawal2013-11-161-1/+1
|
* Instrument each load config initializerPaul Nikitochkin2013-11-161-0/+13
| | | | | | In order to simplify profiling loading of initializers, added instument for tracking load config initializer event from `config/initializers`
* Merge pull request #12695 from mikepack/allow_pathnamesYves Senn2013-11-111-0/+14
|\ | | | | Allow Pathnames to be added to eager load paths
| * Allow Pathnames to be added to eager load pathsMike Pack2013-11-111-0/+14
| |
* | Make static error pages responsiveEtienne Lemay2013-11-111-1/+1
|/
* Added platform dependent gemsArun Agrawal2013-11-071-0/+7
| | | | | | See #12475 If people are on rbx they will get the desired gem
* application template respects Gemfile entriesAaron Patterson2013-11-041-0/+20
|
* gems can be added or skipped from the templateAaron Patterson2013-11-042-0/+27
|
* BACKTRACE environment variable to show unfiltered backtraces.Yves Senn2013-11-041-5/+34
| | | | | | | | | | | We used to support the `BACKTRACE` environment variable but when we switched to MiniTest it got removed: f9382cd7948 This commit adds back the functionality to show the unfiltered backtrace when needed. This also works when you run your tests with `rake`: * `BACKTRACE=1 bin/rake test` * `BACKTRACE=1 ruby -Itest ...`
* No web-console for nowArun Agrawal2013-11-031-5/+0
|
* Merge pull request #12733 from robin850/fix-railties-buildRafael Mendonça França2013-11-012-3/+3
|\ | | | | Fix railties build
| * Fix some failing tests for Rails::PathsRobin Dupret2013-11-012-3/+3
| | | | | | | | | | Since we are not using the File.exists? alias which raises a warning on current ruby trunk, few stubs are wrong.
* | More Warnings removed for ruby trunkArun Agrawal2013-11-015-13/+13
| | | | | | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
* | Passing args for gemfile entryArun Agrawal2013-11-011-1/+1
|/ | | | Fixing build
* gemfile entries can be added to the app builderAaron Patterson2013-10-311-0/+35
|
* forgot to add the test. orz :cry:Aaron Patterson2013-10-311-0/+50
|
* add a test for whitespace separated args in the rc fileAaron Patterson2013-10-301-0/+16
|
* there is no reason for ARGV[0] to be nilAaron Patterson2013-10-301-2/+2
|
* add a comment to people of the futureAaron Patterson2013-10-301-1/+5
|
* adding a test for --help defaultsAaron Patterson2013-10-301-0/+7
|
* change the test to make argv a little more realisticAaron Patterson2013-10-301-7/+6
|
* adding a test for the current behaviorAaron Patterson2013-10-301-0/+18
|
* add a test for the rc commandline optionAaron Patterson2013-10-301-0/+18
|
* remove useless assertionsAaron Patterson2013-10-301-2/+0
|
* test some of the rc specificationAaron Patterson2013-10-301-3/+43
|
* forgot the test, oops!Aaron Patterson2013-10-301-0/+36
|
* Fixed tests for app_generatorArun Agrawal2013-10-271-2/+13
| | | | | | Added test for jbuilder and web-console inclusion. Added README.rdoc for test default files
* Removal of javascript related gems when creating an appRobin Dupret2013-10-271-5/+7
| | | | | | | | | Commit 0417bc8 add the coffee-rails and javascript runtime gems even when passing the --skip-javascript option but this is not the desired behavior. Also remove all javascript related stuff in the generated application such as the vendor/assets/javascripts folder.
* Make the application name snake cased when it contains spacesRobin Dupret2013-10-221-0/+10
| | | | | | | | | | | | | The application name is used to fill the `database.yml` and `session_store.rb` files ; previously, if the provided name contained whitespaces, it led to unexpected names in these files. Since Shellwords.escape adds backslashes to escape spaces, the app_name should remove them and replace any space with an underscore (just like periods previously). Also improve the assert_file helper to work with paths containing spaces using String#shellescape.
* Added --model-name option scaffold_controller_generator.yalab2013-10-152-0/+28
|
* Make logging to stdout work again with implicit `development` envMarc Schütz2013-10-132-12/+52
|
* Expose MiddlewareStack#unshift to environment configuration.Ben Pickles2013-10-091-0/+6
|
* Merge branch 'fix-ip-spoof-errors' of https://github.com/tamird/rails into ↵Andrew White2013-09-301-0/+10
|\ | | | | | | tamird-fix-ip-spoof-errors
| * make sure both headers are set before checking for ip spoofingTamir Duberstein2013-06-041-0/+10
| |
* | Only output Server logs in Developmentschneems2013-09-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now when you start a server via `rails s`, the logger gets extended so that it logs to the file system and also to stdout. This extension behavior is not "intelligent" and if the default logger is already set to output to stdout, then the contents will be received twice. To capture logs in accordance with http://www.12factor.net/logs some platforms require the logs to be sent to standard out. If a logger is set to stdout, and the server is started using `rails server` instead of another method (i.e. `thin start` etc.) then the app will produce double logs. This PR fixes the issue by only extending the logger to standard out in the development environment. So that in production you don't get double logs like this: ``` ActionView::Template::Error (wrong number of arguments (5 for 4)): 1: <% lang_index = 0 %> 2: <div class="row"> 3: <ul class="nav nav-tabs nav-stacked span2" data-tabs="tabs" id="repo-tabs"> 4: <% repos.group_by(&:language).each do |lang, repos| %> 5: <% unless lang == nil %> 6: <li><a href="#<%= "#{lang.parameterize}#{lang.hash}" %>" data-toggle="tab"><%= lang %></a></li> 7: <% end -%> app/views/shared/_repos.html.erb:4:in `_app_views_shared__repos_html_erb___1685450633638247395_70300668607000' app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb__2084723628308867770_70300687584880' ActionView::Template::Error (wrong number of arguments (5 for 4)): 1: <% lang_index = 0 %> 2: <div class="row"> 3: <ul class="nav nav-tabs nav-stacked span2" data-tabs="tabs" id="repo-tabs"> 4: <% repos.group_by(&:language).each do |lang, repos| %> 5: <% unless lang == nil %> 6: <li><a href="#<%= "#{lang.parameterize}#{lang.hash}" %>" data-toggle="tab"><%= lang %></a></li> 7: <% end -%> app/views/shared/_repos.html.erb:4:in `_app_views_shared__repos_html_erb___1685450633638247395_70300668607000' app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb__2084723628308867770_70300687584880' ``` ATP Railties. Opened against master in favor of #10999