aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/testing
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #21912 from y-yagi/move_prepare_destination_to_publicSean Griffin2015-10-081-1/+2
|\ | | | | change `prepare_destination` to public API [ci skip]
| * change `prepare_destination` to public API [ci skip]yuuji.yaginuma2015-10-081-1/+2
| | | | | | | | | | | | | | `prepare_destination` has been used in the template file for the generator, I think it should be a public API ref: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb#L8
* | remove unused requireyuuji.yaginuma2015-10-081-2/+0
|/ | | | `shellwords` is no longer needed from #20605.
* assert_file understands paths with special charactersDiego Carrion2015-06-181-1/+1
| | | fixes #20042
* - Extracted silence_stream method to new module in activesupport/testing.Vipul A M2015-01-201-16/+2
| | | | | | | | | | | | - Added include for the same in ActiveSupport::Test. - Removed occurrences of silence_stream being used elsewhere. - Reordered activesupport testcase requires alphabetically. - Removed require of silence stream from test_case - Moved quietly method to stream helper - Moved capture output to stream helper module and setup requires for the same elsewhere
* Fix example code for `Rails::Generators::Testing::Behaviour` [ci skip]Ryunosuke SATO2014-10-171-1/+1
| | | | | `cleanup_destination_root` method is not found anywhere. Instead, `prepare_destination` clean up distination root on setup.
* Keep quietly and capture undeprecated on your suiteRafael Mendonça França2014-07-151-0/+17
|
* Require shellwords since it is dependecy of this fileRafael Mendonça França2014-06-261-0/+2
| | | | Closes #15919
* Removing without_thor_debugArun Agrawal2014-01-111-13/+3
| | | | | a1d0c0fa3d8ca97edc8f2a1d6ba96af19221dbad as bundler 1.5.2 is out now
* Reverse 821525e and wrap run_generator callAndrew White2014-01-021-3/+13
| | | | | | Ruby 2.1.0 includes the json gem 1.8.1 by default so we need bundler 1.5.1 for `bundle install` to work. To fix this reverse the downgrade to 1.3.5 and wrap the `run_generator` call with a block that resets `THOR_DEBUG`.
* More Warnings removed for ruby trunkArun Agrawal2013-11-011-2/+2
| | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
* Make the application name snake cased when it contains spacesRobin Dupret2013-10-221-1/+1
| | | | | | | | | | | | | 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.
* Revert "Merge pull request #10194 from ↵Carlos Antonio da Silva2013-04-121-3/+1
| | | | | | | pabloh/extract_regexp_at_generators_testing_assertion" This reverts commit 81f243375b9d3cfd431c1ca904c5c1efc9a41ae8, reversing changes made to c7673b0981d961e5510c85d958c944876d543314.
* Extract method declaration regexp into a constantPablo Herrero2013-04-121-1/+3
|
* Avoid running bundler on tests that don't need itSam Ruby2013-04-031-1/+4
|
* Move the class methods to above the protected sectionRafael Mendonça França2013-04-013-47/+36
|
* Break down Rails::Generator::TestCase into modulesPablo Herrero2013-03-313-0/+253