Commit Graph

10546 Commits

Author SHA1 Message Date
Yves Senn
3cd0530df6 Merge pull request #20724 from y-yagi/fix_scaffold_in_full_engine
fix NoMethodError that occurs when generating scaffold inside full mode engine
2015-06-29 14:23:26 +02:00
yuuji.yaginuma
b1738e1a02 fix NoMethodError that occurs when generating scaffold inside full mode engine 2015-06-28 18:16:01 +09:00
Rafael Mendonça França
329c249c9a Merge pull request #20712 from nhodges/dev/nh/20345
Remove `config` options from `default_options` in `railties`
2015-06-27 13:39:07 -03:00
Nuri Hodges
4dbacf26a9 Remove config options from default_options in railties
Fixes #20345.
2015-06-26 23:29:16 -07:00
Rafael Mendonça França
79fc70f413 Merge pull request #20714 from y-yagi/fix_file_fixture_path
correct `file_fixture_path` in plugins `test_helper.rb`
2015-06-27 01:18:27 -03:00
yuuji.yaginuma
5469d9e1c4 correct file_fixture_path in plugins test_helper.rb
`fixture_path` does not end with a slash
2015-06-27 10:57:35 +09:00
Hirofumi Wakasugi
e6be33f1dd cherry-pick test and source doc from #20050 2015-06-25 15:25:49 +09:00
Hirofumi Wakasugi
ce3d2fa05a modify add_source in application template to take a block for gem entries 2015-06-25 15:25:14 +09:00
yuuji.yaginuma
1d3e0f5872 do not show "Failed tests" message when a failed test is not 2015-06-23 07:53:17 +09:00
yuuji.yaginuma
3bcb637eab remove unused variable in reporter test 2015-06-22 08:04:53 +09:00
Yves Senn
e97b8cb15f Merge pull request #20605 from dcrec1/assert_file
assert_file understands paths with special characters
2015-06-19 11:25:03 +02:00
Diego Carrion
6074d0f6d3 assert_file understands paths with special characters
fixes #20042
2015-06-18 11:59:47 -03:00
Mehmet Emin İNAÇ
c76b11244c fix railties tests 2015-06-18 14:45:45 +03:00
Aaron Patterson
56903585a0 Remove ContentLength middleware from the defaults.
ContentLength is not part of the rack SPEC since rack/rack@86ddc7a6ec
If you want it, just add it as a middleware in your config.
2015-06-17 16:18:43 -07:00
Kasper Timm Hansen
8775bc3de1 Merge pull request #20596 from vngrs/use_single_quote_in_gemfile
Use single quote in Railties generators Gemfile [ci skip]
2015-06-17 12:59:48 +02:00
Mehmet Emin İNAÇ
65a2ef6ba9 Use single quote in Railties generators Gemfile [ci skip] 2015-06-17 12:55:03 +03:00
Santiago Pastorino
16db36b566 Bump AMS to 0.10.0.rc2 2015-06-16 19:37:13 -03:00
Roque Pinel
5fab7192ba [ci skip] Fix the Rails::Generators::NamedBase#template doc
Since #13612, `template` is no longer being used to generate
migrations.
2015-06-15 00:16:43 -04:00
Yves Senn
2e59604909 make it possible to customize the executable inside rereun snippets.
In the Rails repository we use a `bin/test` executable to run our tests.
However the rerun snippets still included `bin/rails test`:

BEFORE:
```
Failed tests:

bin/rails test test/cases/adapters/postgresql/schema_test.rb:91
```

AFTER:
```
Failed tests:

bin/test test/cases/adapters/postgresql/schema_test.rb:91
```
2015-06-13 11:58:43 +02:00
Yves Senn
1d43458c14 Merge pull request #20480 from senny/test_runner
use our own runner for Rails framework components `bin/test`
2015-06-12 17:19:47 +02:00
Sean Griffin
de45e4c6cd Fix failing tests for Rails-API
This looks to be just out of sync tests
2015-06-11 17:24:59 -06:00
Rafael Mendonça França
f6babddb58 assigns was removed from Rails 2015-06-11 20:05:15 -03:00
Santiago Pastorino
51d5d6252e head :no_content is implicitly called 2015-06-11 16:54:17 -03:00
Jorge Bejar
afc78e72b4 Checking if controller responds to wrap_parameter is not longer required 2015-06-11 16:54:16 -03:00
Jorge Bejar
cf9f2f329a Enable wrap_parameter by default in rails api applications 2015-06-11 16:54:16 -03:00
Jorge Bejar
ebcc15ca4e Add rake-cors gem (commented) in Gemfile for rails api apps 2015-06-11 16:54:16 -03:00
Santiago Pastorino
72d0784611 Make Rails API apps return the full resource on update 2015-06-11 16:54:16 -03:00
Santiago Pastorino
f3df21649a Add CHANGELOG entries for API apps functionality 2015-06-11 16:54:15 -03:00
Santiago Pastorino
37507d3b83 Document Generators.api_only! method 2015-06-11 16:54:15 -03:00
Santiago Pastorino
03b576ee06 http only => API only 2015-06-11 16:54:15 -03:00
Santiago Pastorino
511c33a157 Add AMS 0.10.0.rc1 by default for api apps 2015-06-11 16:54:15 -03:00
Santiago Pastorino
dc4c68aaaa Fix scaffold generator test for resource routes 2015-06-11 16:54:15 -03:00
Santiago Pastorino
846f35203d Fix class_option description for api generators 2015-06-11 16:54:15 -03:00
Santiago Pastorino
b6c270fb62 Remove unneeded option from ResourceRouteGenerator 2015-06-11 16:54:15 -03:00
Jorge Bejar
fa11f10c94 Api only apps should include tmp and vendor folders 2015-06-11 16:54:14 -03:00
Jorge Bejar
674dab30bc Routes resources avoid :new and :edit endpoints if api_only is enabled 2015-06-11 16:54:14 -03:00
Santiago Pastorino
440b334cbb Use new hash syntax 2015-06-11 16:54:13 -03:00
Santiago Pastorino
3d3730040d Disable jbuilder for Rails API apps, meanwhile it doesn't play nicely 2015-06-11 16:54:12 -03:00
Santiago Pastorino
7d17269be3 Add test to show api only apps allow overriding generator options 2015-06-11 16:54:12 -03:00
Santiago Pastorino
e9e94c1d15 Add config.api_only = true to config/application.rb when using rails new --api 2015-06-11 16:54:12 -03:00
Santiago Pastorino
98a9936228 config.api_only = true implies config.generators.api_only = true 2015-06-11 16:54:12 -03:00
Santiago Pastorino
decc4e8f82 Do not generate lib/assets directory for api apps 2015-06-11 16:54:12 -03:00
Santiago Pastorino
94fdba9c92 Api apps scaffold does not generate assets 2015-06-11 16:54:12 -03:00
Santiago Pastorino
e5b6188b47 Api apps scaffold does not generate helpers 2015-06-11 16:54:12 -03:00
Santiago Pastorino
6d2b405a4e Api apps scaffold does not generate views 2015-06-11 16:54:12 -03:00
Santiago Pastorino
451b1e3574 Add api scaffold test for route, controller and its tests 2015-06-11 16:54:11 -03:00
Santiago Pastorino
d4fe23c76b API apps scaffold generator generates an apropriate controller 2015-06-11 16:54:11 -03:00
Santiago Pastorino
20939b3fcc config.generators.api_only = true set rails api option on generators 2015-06-11 16:54:11 -03:00
Santiago Pastorino
e8100fc4e3 Api apps scaffold generates routes without new and edit actions 2015-06-11 16:54:11 -03:00
Santiago Pastorino
c19035299a Hide assets, helper, css and js namespaces for api only apps 2015-06-11 16:54:11 -03:00