1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

23 commits

Author SHA1 Message Date
Pablo Herrero
57f71c28bf Break down Rails::Generator::TestCase into modules 2013-03-31 20:46:16 -03:00
Carlos Antonio da Silva
314e4bbaea Fix method assertion ensuring it will match "end" with the same indentation
Otherwise it was matching "end" lines from blocks within the method body,
making tests such as the migration ones fail.
2012-12-08 20:40:35 -02:00
Francesco Rodriguez
0e027f4fe3 Fix #assert_instance_method to also assert indented methods 2012-12-08 09:44:45 -05:00
Robin Dupret
5ad7f8ab41 Use Ruby 1.9 Hash syntax in railties 2012-10-14 18:26:58 +02:00
Francesco Rodriguez
521e2eeac9 update Rails::Generators docs [ci skip] 2012-10-07 15:36:39 -05:00
Aaron Patterson
7896f35be3 use system tmpdir rather than our own 2012-06-19 14:41:31 -07:00
Carlos Antonio da Silva
3e7070622a Remove delegated methods from generators test case
`class_attribute` already generates instance readers/writers by default,
so there's no need to add delegation methods.

Removes some "method redefined" warnings.
2012-05-19 09:22:06 -03:00
Alexey Vakhov
2497fd90f4 Fix misprints in assert_file & assert_instance_method docs 2012-04-26 18:32:01 +04:00
Prem Sichanugrist
cf03daa5f5 Fix code example in generator test case 2012-04-09 09:48:30 -04:00
José Valim
b4e97ea2d9 Tidy up migration types. 2011-12-24 10:38:19 +01:00
Dmitrii Samoilov
7a47f362c8 added ability to specify from cli when generating a model/migration whether particular property should be an index like this 'rails g model person name:string:index profile:string' 2011-12-24 10:01:54 +01:00
Arun Agrawal
a6c60222c5 Modified content in guides and comments
for "assert /" warnings.
Removed because if somebody will use this code
they will get warnings!
2011-09-04 08:24:02 +05:30
misfo
5e35ceee7d corrected a mistake in the documentation for assert_migration 2011-01-29 15:42:56 -06:00
Krekoten' Marjan
d4fa120671 Move capture to Kernel. [#5641 state:resolved] 2010-09-18 20:49:36 +02:00
Xavier Noria
755af49755 edit pass to apply API guideline wrt the use of "# =>" in example code 2010-07-30 02:30:04 +02:00
Xavier Noria
92669b8320 application generation: --skip-testunit and --skip-activerecord renamed to --skip-test-unit and --skip-active-record respectively
Reason is their proper spellings are "Test::Unit" and "Active Record".
Option names and descriptions have been revised, as well as some method
names and minor details here and there.
2010-07-25 22:55:38 +02:00
Jeff Kreeftmeijer
d93b45e8d3 Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:04:49 +02:00
José Valim
1a2d556de7 Rename assert_attribute_type to asser_field_type. 2010-05-16 12:07:44 +02:00
Jeff Kreeftmeijer
5ff6de0982 Added assert_attribute_type to clean up GeneratedAttributeTest [#2377 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 12:07:22 +02:00
Jeremy Kemper
e5ab4b0d07 Convert to class_attribute 2010-02-01 02:02:42 -08:00
Joshua Peek
2601a16ede Autoload AS test case 2010-01-04 16:22:46 -06:00
José Valim
271e7c803f Move all generators tests to use new test case syntax. 2010-01-03 17:14:50 +01:00
José Valim
441227a10f Create Rails::Generators::TestCase. 2010-01-03 17:14:49 +01:00