aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/actions_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Cleaned up generators tests using internal assertion helperRonak Jangir2015-08-201-26/+11
|
* cherry-pick test and source doc from #20050Hirofumi Wakasugi2015-06-251-0/+8
|
* Removed use of mocha from railties actions_testRonak Jangir2015-06-011-27/+52
|
* Add a new-line to the end of route method generated code.Arthur Neves2015-03-181-0/+24
| | | | | | | | Fix regression on route method that was added by bac812a7ef2660a2fe2ab00822e5e66228379822. The regression was that when calling the `route` method, we were not appending a \n anymore. [fixes #19316]
* README.rdoc -> README.md for newly generated applicationsXavier Noria2015-02-061-2/+2
| | | | | | README.rdoc was generated to support the doc:app task. Now that this task is gone we can switch to Markdown, which is nowadays a better default.
* Remove some warning with Ruby 2.2Rafael Mendonça França2014-12-291-1/+1
|
* fix broken `gem` method with non-String arguments. Closes #16709.Yves Senn2014-08-271-0/+10
| | | | This was caused by #15327.
* Merge branch 'rm-remove-mocha'Rafael Mendonça França2014-07-191-0/+1
|\ | | | | | | | | Conflicts: actionpack/test/abstract_unit.rb
| * Stop requiring mocha automaticallyRafael Mendonça França2014-07-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | We are planning to remove mocha from our test suite because of performance problems. To make this possible we should stop require mocha on ActionSupport::TestCase. This should not affect applications since users still need to add mocha to Gemfile and this already load mocha. Added FIXME notes to place that still need mocha removal
* | Keep quietly and capture undeprecated on your suiteRafael Mendonça França2014-07-151-1/+1
|/
* Merge pull request #15327 from alexbel/replace_double_quotes_with_single_quotesYves Senn2014-05-271-7/+15
|\ | | | | | | Replace double quotes with single quotes while adding an entry into Gemfile
| * Replace double quotes with single quotes while adding an entry into Gemfilealexbel2014-05-261-7/+7
|/
* Removing the app constant and replacing it with Rails.applicationwangjohn2013-04-301-1/+1
| | | | | syntax. This helps removing the class level abstraction of an application.
* Fix readme testsCarlos Antonio da Silva2013-01-071-2/+2
| | | | Related to the change introduced in 6cf47c533d7d6784d34fc31406a335555e0c32b8.
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-061-1/+1
| | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* Refactor tests that switch RAILS_ENV and RACK_ENVCarlos Antonio da Silva2012-12-061-16/+15
| | | | | | | | | | | | This cleanup aims to fix a build failure: https://travis-ci.org/rails/rails/jobs/3515951/#L482 Since travis always have both ENV vars set to "test", a test is failing where it's expected to output the default env "development", but "test" is the result due to RACK_ENV being set when we expect it to not be. By cleaning this duplication we ensure that changing any of these env variables will pick the right expected value.
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-18/+18
|
* Use new hash syntax for generators gem methodAlexey Vakhov2012-05-221-0/+8
| | | | | | The Gemfile of new application uses ruby 1.9 hashes. Gem method of generators should use them too. It prevents from mixing two kinds of syntax in one file.
* Rails::Plugin has goneSantiago Pastorino2012-01-031-37/+0
|
* Add the .rdoc extension to the README that Rails generates for a new applicationSteve Richert2011-12-091-3/+3
|
* Updating newline fix to maintain existing linebreaks and indentation and ↵John Donahue2011-11-251-4/+6
| | | | test for b/eol on inserts
* Added tests for #3751ganesh2011-11-251-1/+1
|
* Isolate rake action tests that should be run under default envGuillermo Iguaran2011-10-081-4/+8
|
* The generator invokes rake with either the :env option, ENV['RAILS_ENV'], or ↵Jeremy Kemper2011-10-081-3/+5
| | | | development. So if Travis has exported RAILS_ENV=test, it'll be used instead of development, breaking these brittle expectations.
* Honour RAILS_ENV environment variable when running rake.Dmitriy Kiriyenko2011-09-291-0/+16
|
* Add gem_group support to generatorsWojciech Mach2011-09-041-0/+14
|
* fix indent for generator environment methodAlexey Vakhov2011-09-021-1/+1
|
* Fix Rails::Generators::Actions#environment when env is passed. Closes #2110Guillermo Iguaran2011-07-181-0/+7
|
* be sure to parenthesize the arguments when the first one is a RegExp literalAkira Matsuda2011-05-181-2/+2
| | | | | | this fixes: "warning: ambiguous first argument; put parentheses or even spaces" because: you need this to tell the parser that you're not calling :/ method (division) details (Japanese!): http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-dev/42445?42370-43277
* log and readme should respect --quietJosé Valim2011-03-041-0/+25
|
* Fix app and actions generators testsPiotr Sarnacki2010-09-251-0/+5
| | | | | | | Normally Rails.application is an instance, but for those tests Rails.application needs to be class. Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove deprecation warnings in railtiesCarlos Antonio da Silva2010-09-061-37/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* renames load_(once_)paths to autoload_(once_)paths in dependencies and configXavier Noria2010-06-241-3/+3
|
* Bundler deprecated options in Gemfile with application template using method ↵Adrian Sanchez2010-05-151-2/+12
| | | | | | "gem" [#4534 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Update generators to use thor 0.13.6 with simpler source_root handling.José Valim2010-04-301-1/+1
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-1/+1
| | | | former since it's less obstrusive.
* removed useless require lineSebastian Martinez2010-03-191-3/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add readme as method in Rails::Generators::Actions (as we had in 2.3)José Valim2010-02-171-0/+6
|
* Fixes unescaped version passthrough of generator 'gem' command. [#3901 ↵Michael Bleigh2010-02-101-0/+18
| | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* fix usage examples and more to use new invocationsRomD2010-02-061-5/+5
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Get generators tests running on Ruby 1.9.1José Valim2010-01-191-1/+2
|
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-181-2/+2
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Automatically remove :generators: from namespaces.José Valim2010-01-181-1/+1
|
* Ensure generators can be invoked by their shortcut and remove attr_reader tasks.José Valim2010-01-181-0/+13
|
* Move all generators tests to use new test case syntax.José Valim2010-01-031-9/+3
|
* Scaffolding generates new routing dsl examplesJoshua Peek2009-12-091-1/+1
|
* Remove --freeze (since Rails will come bundled in all new apps) and update ↵José Valim2009-11-031-23/+24
| | | | | | gem action to change Gemfile instead of config.environment. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* CI breakageYehuda Katz2009-11-021-1/+1
| | | | This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
* Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved]José Valim2009-10-281-1/+1
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>