Commit Graph

10686 Commits

Author SHA1 Message Date
Oleg Sukhodolsky
72bc400c9b Allow Minitest to load plugins. Fixes #21102 2015-08-03 08:11:49 +03:00
atul-shimpi
cbf178664d Inform user to add styles in correct location in application.css 2015-08-03 08:27:37 +05:30
Yves Senn
5ca385cb4e Merge pull request #20992 from JuanitoFatas/fix/bin-setup-script
Don't fail when checking dependencies in bin/setup script
2015-07-31 15:26:12 +02:00
schneems
9b18ba75b1 Fix rake/notes_test
Presumably due to https://github.com/rails/sprockets-rails/pull/265 sprockets was trying to load the "scss" gem but it isn't in the gemfile:

```
ApplicationTests::RakeTests::RakeNotesTest#test_register_a_new_extension:
LoadError: cannot load such file -- sass
```

If we use an empty precompile list, it won't try to load sass.
2015-07-29 20:12:56 -05:00
schneems
4bc2469156 Fix reported regression rails/sprockets-rails#265
We can prevent the UglifierCompressor from being instantiated prematurely by setting precompile to an empty array in this test.
2015-07-29 20:12:56 -05:00
Robin Dupret
a74fbb2972 Add :nodoc: for internal testing methods [ci skip] 2015-07-28 12:22:37 +02:00
yuuji.yaginuma
46599260b1 set the correct path to ActionDispatch::IntegrationTest.fixture_path
`ActionDispatch::IntegrationTest.fixture_path` set by `test_help.rb`, but if the engine,
path under the dummy is will be set, fixtures under test was not loaded.
2015-07-28 08:05:53 +09:00
Rafael Mendonça França
ab6f0dfbd7 Merge pull request #20759 from vngrs/fix_wrong_doc
Change wrong usage in documentation about autoload_paths [ci skip]
2015-07-27 17:08:46 -03:00
Rafael Mendonça França
695937c23b Merge pull request #21003 from robin850/api-plugins
Allow generating plugins for API applications
2015-07-27 13:03:00 -03:00
Sean Griffin
12e5cb5db3 Replace the giant comment in routes.rb with a link to the guides
This comment not only serves no purpose, but in my experience is
actively detrimental to new developers getting started with Rails.
Expereinced developers just end up deleting this comment, and are
annoyed that they had to take this step. I also spend a lot of time
mentoring brand new developers, and a consistent theme I've seen is that
this comment just ends up intimidating them, and making them think it's
dangerous to edit this file.

One of my students just said this (due to the number of comments which
even new developers don't actually read, they just see it as a sign that
this thing is "dangerous").

> I don't edit any file that Rails generates for me, until my instructor
> says that it's OK to do so.

Realistically, this comment adds 0 value. We have very good
documentation, which we can just link to instead. If someone is truly
new enough to benefit from this info, they presumably just ran `gem
install rails`, and have an internet connection that they can use to
read the routing guide.

The choice of language here was very specific. I chose "the DSL
available" over "what is possible", because a consistent theme I've
noticed among my students is that they aren't aware that this is
actually a Ruby file, and can write any Ruby code here that they want.

This file is not the only offender, but is by far the biggest point of
pain that I've seen, and felt it was a good spot to open this
discussion.
2015-07-24 17:22:22 -06:00
Matthew Draper
40ce686b57 Merge pull request #20928 from matthewd/unload-interlock
We need stricter locking before we can unload
2015-07-24 09:56:20 +09:30
Robin Dupret
a120f2716e Enable the api_only option for API plugins' generators
This way, running a generator inside the plugin's directory, files that
are not relevant won't be generated (e.g. views or assets).

This won't interfere with the application's generators configuration.
2015-07-23 19:36:49 +02:00
Robin Dupret
ce32c9da96 Generate an API dummy application for API plugins 2015-07-23 18:27:19 +02:00
Robin Dupret
e3cfd5b174 Make ApplicationController inherit from AC::API for API plugins 2015-07-23 18:27:18 +02:00
Robin Dupret
67863aa844 Skip assets, helpers and views generation for API plugins 2015-07-23 18:27:15 +02:00
Robin Dupret
9a7f011da1 Add the --api option for the plugin generator 2015-07-23 18:13:00 +02:00
Juanito Fatas
86a9633ce9 Don't fail when checking dependencies in bin/setup script 2015-07-23 14:21:41 +08:00
Ryan Bigg
f96b19b6da Remove check for caller_locations in Rails::Engine
This is no longer necessary, as the minimum version requirement for Ruby is 2.2.2, and the `caller_locations` feature was added in Ruby 2.0.0. Since Rails no longer supports pre 2.0 versions of Ruby, there is no need to check first if the Kernel does respond to `caller_locations`. The answer is: yes it does.
2015-07-23 07:55:28 +10:00
Rafael Mendonça França
b260a2735e Merge pull request #20926 from rsanheim/fail-fast-bin-setup
add system! to fail fast in bin/setup
2015-07-21 11:03:00 -03:00
Rafael Mendonça França
9582b3f509 Merge pull request #20819 from y-yagi/rails_api_gemfile
remove `web-console` from API app generated Gemfile
2015-07-21 10:59:30 -03:00
Thiago Pinto
1acf0f0ebd titleizing the New Link 2015-07-20 22:20:39 -03:00
David Heinemeier Hansson
068865a7d5 Merge pull request #20384 from kaspth/per-request-cache
Use digest cache in development.
2015-07-20 13:15:55 +02:00
Matthew Draper
bd31aec9c3 We need stricter locking before we can unload
Specifically, the "loose upgrades" behaviour that allows us to obtain an
exclusive right to load things while other requests are in progress (but
waiting on the exclusive lock for themselves) prevents us from treating
load & unload interchangeably: new things appearing is fine, but they do
*not* expect previously-present constants to vanish.

We can still use loose upgrades for unloading -- once someone has
decided to unload, they don't really care if someone else gets there
first -- it just needs to be tracked separately.
2015-07-20 09:14:10 +09:30
Kasper Timm Hansen
40f79da8f2 Make digest cache work in development.
Avoid computing the same fragment digest many times when looping over templates.

The cache is cleared on every request so template changes are still picked up.
2015-07-18 21:54:19 +02:00
Rob Sanheim
d54d4356e3 add system! to fail fast in bin/setup 2015-07-18 00:14:38 -05:00
Jon Atack
ea747f7d2e [skip ci] Lookup can be a noun but it is not a verb
Various grammar corrections and wrap to 80 characters.
2015-07-17 20:18:57 +02:00
yuuji.yaginuma
c0e5905ccc add application_job.rb to template of mountable engine
since cb012467214f6e4bb1ac3987554bb75020b4796b, generated job inherents from ApplicationJob,
ApplicationJob is required in the mountable engine.
2015-07-17 09:28:39 +09:00
yuuji.yaginuma
824246f66b make test runner work correctly inside engine 2015-07-12 18:29:31 +09:00
Aaron Patterson
cc60b5e359 remove Rack::Lock for webrick
constant loading should be thread safe now, so lets remove this
2015-07-10 16:09:51 -07:00
yuuji.yaginuma
8c6f7ca888 remove web-console from API app generated Gemfile 2015-07-09 17:51:30 +09:00
Matthew Draper
383fed5f23 Rely on the load interlock for non-caching reloads, too 2015-07-09 03:31:30 +09:30
Matthew Draper
c37d47e308 Soften the lock requirements when eager_load is disabled
We don't need to fully disable concurrent requests: just ensure that
loads are performed in isolation.
2015-07-09 02:23:23 +09:30
Yves Senn
74c7246238 Merge pull request #20767 from y-yagi/remove_unnecessary_fixture_method
remove unnecessary loading fixtures from `navigation_test.rb`
2015-07-06 09:20:23 +02:00
yuuji.yaginuma
4e4ad5f7f2 remove unnecessary loading fixtures from navigation_test.rb
it has been corrected in 0176aef1ebaa9f69001c7045a51727a8ea9b61b8 as for loading of fixtures in `test_helper.rb`,
loading fixtures for each test is unnecessary.
2015-07-03 08:50:24 +09:00
Mehmet Emin İNAÇ
2ccae54d64 Change wrong usage in documentation about autoload_paths [ci skip]
We can't use this configuration outside of the application.rb
2015-07-02 16:18:49 +03:00
Robin Dupret
42b5906523 Display a more human readable list of reserved names
Interpolating an array inside a String will call #inspect on it. Let's
call #join to display a more human-readable error message.
2015-07-01 16:58:42 +02:00
Victor Costan
e334ec4fe6 Avoid crashing when minitest-rails is loaded.
The improvments to the test runner's integration with minitest in commit
b6fc8e25a10cc4abdd03018798b180270d6c5d7f add methods to the Minitest
module that refer to the Rails module. Unfortunately, when the
minitest-rails gem is loaded, the reference is incorrectly resolved to
the Minitest::Rails module.
2015-07-01 00:56:14 -04:00
Yves Senn
2183caa24a dump_schema_after_migration applies migration tasks other than db:migrate
Closes #20743.

The task `db:_dump` now only dumps the schema if
`ActiveRecord::Base.dump_schema_after_migration` is true. This has
effects:

- `db:migrate:up`
- `db:migrate:down`
- `db:forward`
- `db:rollback`
2015-06-30 16:36:03 +02:00
Yves Senn
a8f250a22c tests, railties tests should use bin/ executables when possible.
We recommend using the `bin/` executables in our docs and guides.
Let's make sure that our tests execute the same code path.
2015-06-30 11:19:01 +02:00
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
Yuki Nishijima
5226058163 Add the ability of returning arbitrary headers to ActionDispatch::Static
Now ActionDispatch::Static can accept HTTP headers so that developers
will have control of returning arbitrary headers like
'Access-Control-Allow-Origin' when a response is delivered. They can
be configured through `#config.public_file_server.headers`:

  config.public_file_server.headers = {
    "Cache-Control"               => "public, max-age=60",
    "Access-Control-Allow-Origin" => "http://rubyonrails.org"
  }

Also deprecate `config.static_cache_control` in favor of
`config.public_file_server.headers`.
2015-06-13 09:30:23 -07: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
Santiago Pastorino
101df203eb Add api_only option to Generators 2015-06-11 16:54:11 -03:00
Santiago Pastorino
7b47e4250d Do not generate test/helpers directory for api apps 2015-06-11 16:54:11 -03:00
Santiago Pastorino
3847e485b6 Do not generate app/views directory for api apps 2015-06-11 16:54:10 -03:00
Santiago Pastorino
9b66071a3e Do not generate app/helpers directory for api apps 2015-06-11 16:54:10 -03:00
Santiago Pastorino
1718683016 Do not generate app/assets directory for api apps 2015-06-11 16:54:10 -03:00
Santiago Pastorino
e8915d098c api option implies skipping javascript & sprockets 2015-06-11 16:54:10 -03:00
Santiago Pastorino
c09a401660 Generate appropriate initializers for an api app 2015-06-11 16:54:10 -03:00
Santiago Pastorino
2a9cf48a61 rails new --api generates an api app skeleton 2015-06-11 16:54:10 -03:00
Santiago Pastorino
212a099ab0 Add AC::API + its middleware stack integration test 2015-06-11 16:54:10 -03:00
Santiago Pastorino
135c059d6f Add config.api_only option to application and remove appropriate middleware when true 2015-06-11 16:54:09 -03:00
Yuki Nishijima
a888c3cdc9 Change the index arg of ActionDispatch::Static#new to a kwarg 2015-06-11 04:34:11 -07:00
Yves Senn
eec932704f inline test runner check into as/testing/autorun.rb.
This makes it possible to easily get the runner working with existing
setups that rely on `active_support/testing/autorun.rb`.
2015-06-11 10:50:10 +02:00
masarakki
83b7bf4d3b add option to avoid generating scaffold.css 2015-06-09 04:41:19 +09:00
Yves Senn
e8d02ccf8c Merge pull request #19571 from kaspth/improve-runner-integration
Improve Test Runner's Minitest integration.
2015-06-08 12:05:12 +02:00
Rafael Mendonça França
847a5ea7db Merge pull request #20444 from y-yagi/can_use_path_helper_method_in_console
modify console of app method in that can use the path helpers
2015-06-06 00:07:45 -03:00
yuuji.yaginuma
4fded7c069 modify console of app method in that can use the path helpers 2015-06-05 18:38:53 +09:00
Arun Agrawal
382f52ddbb Remove warning for setting eager_load
AppTemplate::Application.new does not run load hooks.

To load this configuration we need to use create which will 
run load hooks to load this configuration.
2015-06-05 11:07:16 +02:00
Kasper Timm Hansen
b6fc8e25a1 Improve test runner's Minitest integration.
This also adds free mix and matching of directories, files and lines filters.
Like so:

bin/rails test models/post_test.rb test/integration models/person_test.rb:26

You can also mix in a traditional Minitest filter:

bin/rails test test/integration -n /check_it_out/
2015-06-04 20:57:08 +02:00
Ronak Jangir
a68ffa731e Removed duplicate test cases for template execution 2015-06-04 01:55:54 +05:30
Rafael Mendonça França
cecbf9ed32 Merge pull request #18587 from chrismcg/allow_deliver_later_queue_name_to_be_configured
Allow configuration of ActionMailer queue name
2015-06-03 13:25:32 -03:00
Yves Senn
939d5a4932 Merge pull request #20387 from y-yagi/fix_engine_generated_controller_test
set engine's route in the functional test is generated in the engine
2015-06-02 16:20:40 +02:00
Chris McGrath
f5a131aaea Allow configuration of ActionMailer queue name 2015-06-02 10:49:49 +01:00
yuuji.yaginuma
3612793475 add test to run generated test files inside mountable engine 2015-06-02 09:11:48 +09:00
Rafael Mendonça França
8b67f28f4a Merge pull request #20357 from ronakjangir47/remove_mocha1
Removed use of mocha from railties actions_test
2015-06-01 13:44:01 -03:00
Santiago Pastorino
651fa5edcd Merge pull request #20406 from yoongkang/add_edge_sprockets
Use sprockets-rails from github repo
2015-06-01 13:35:31 -03:00
Ronak Jangir
655b8be814 Removed use of mocha from railties actions_test 2015-06-01 21:56:12 +05:30
Yoong Kang Lim
757dd93c7f Use sprockets-rails from github repo
See #20397
2015-06-02 02:02:01 +10:00
Rafael Mendonça França
bdfc662a11 Merge pull request #20138 from tgxworld/deprecated_assert_template
Deprecate `assert_template` and `assigns()`.
2015-06-01 12:39:03 -03:00
yuuji.yaginuma
c861ef283f add engine's namespace to fixture name 2015-05-31 21:28:51 +09:00
yuuji.yaginuma
6a8d91897b set engine's route in the functional test is generated in the engine 2015-05-31 12:54:38 +09:00
Yoong Kang Lim
0cb327c549 Add test to ensure tmp:clear works when tmp is missing
See #20299.
2015-05-30 00:44:12 -07:00
Yoong Kang Lim
f06ce4c12a Generate a .keep file in tmp folder
A lot of scripts assumes the existence of this folder and most would fail if it
is absent.

One example of this is `rake restart` (before the previous commit) – it tries to
`touch tmp/restart.txt`, which would fail if `tmp` does not exist, which was the
case for a freshly-cloned project as `tmp` is `.gitignored` by default.

See #20299.

[Yoong Kang Lim, Sunny Juneja]
2015-05-30 00:44:12 -07:00
Yoong Kang Lim
6fc83f8efe rake restart should work without a tmp folder
In restart.rake, the creation of tmp/restart.txt
would fail if the tmp folder does not exist in the
app. This is a problem because apps cloned using
git would not have the tmp folder, as the folder is
in .gitignore. This commit creates the tmp folder
if it does not exist.

Fixes #20299

[Yoong Kang Lim, Sunny Juneja]
2015-05-30 00:44:05 -07:00
Guo Xiang Tan
ca83436d1b Remove assigns and assert_template. 2015-05-30 14:13:57 +08:00
Rafael Mendonça França
73aab036ee Merge pull request #20017 from eliotsykes/configurable-static-index-filename
config.static_index configures directory Index "index.html" filename
2015-05-28 18:53:00 -03:00
Rafael Mendonça França
233ceda594 Merge pull request #20331 from arunagw/arunagw-remove-unused-package-tasks
Remove unused package tasks
2015-05-28 18:48:21 -03:00
Mehmet Emin İNAÇ
44781b6e97 Deprecate :nothing option for render method
`head` method works similar to `render` method with `:nothing` option
2015-05-28 15:13:32 +03:00
Eliot Sykes
3ff39494cd config.static_index configures directory index "index.html" filename
Set `config.static_index` to serve a static directory index file not
named `index`. For example, to serve `main.html` instead of `index.html`
for directory requests, set `config.static_index` to `"main"`.
2015-05-28 09:41:00 +01:00
Arun Agrawal
21b6b68f63 Remove unused package tasks
We are using `all:build` now.
2015-05-28 09:06:10 +02:00
Rafael Mendonça França
a75f6cfb1b Merge pull request #20326 from hderms/dh/fix_task_bug
Fix rake method definition leaking onto Object
2015-05-27 22:19:57 -03:00
Rafael Mendonça França
4b606d0713 💣 Fix another leftover 2015-05-27 21:59:00 -03:00
Rafael Mendonça França
6b1e67e1a1 Fix file name
This is a leftover of #19867
2015-05-27 21:48:01 -03:00
Rafael Mendonça França
99c042b3cc Merge pull request #19867 from radar/rename-app-rails-loader
Remove redundant 'Rails' from Rails::AppRailsLoader constant
2015-05-27 21:41:06 -03:00
Dermot Haughey
ae5c3c3514 add fixed file
add framework_test

add another test
2015-05-27 19:24:47 -05:00
Kassio Borges
ac8356eb22 Remove web-console and spring from test group on default Gemfile. 2015-05-27 14:58:05 -03:00
Yves Senn
852460852c Merge pull request #20262 from arunagw/aa-remove-broken-unused-release-task
Remove broken and unused release task
2015-05-27 09:14:19 +02:00
Rafael Mendonça França
5e92f9022f Merge pull request #20248 from ronakjangir47/remove_mocha
Remove use of mocha in the railties generators tests
2015-05-25 11:01:02 -03:00
Zachary Scott
83d0252fe3 Add missing type reference here 2015-05-24 21:18:09 -07:00
Ben Pickles
46fedb4782 Omit .keep in .gitignore when generated with --skip-keeps. 2015-05-22 13:32:06 +01:00
Arun Agrawal
4194d052d8 Remove broken and unused release task
- We do release with release.rb
- There is no `rake/gemcutter`
2015-05-22 14:30:30 +02:00
Ronak Jangir
722a367d4e Remove use of mocha in the railties generators tests 2015-05-22 00:12:58 +05:30
Ryan Bigg
f9640b0900 Remove redundant 'Rails' from Rails::AppRailsLoader constant 2015-05-21 16:50:41 +10:00
Roque Pinel
b36f159adf Remove use of mocha in the railties path tests 2015-05-18 00:47:30 +00:00
claudiob
271a5521e2 [ci skip] Remove comments about Rails 3.1
Stems from https://github.com/rails/rails/pull/20105#issuecomment-100900939
where @senny said:

> From my point of view, all the docs (guides, API) are version bound.
> They should describe that version and continue to be available when newer versions are released.
> The cross referencing can be done by the interested user.
2015-05-11 16:06:09 -07:00
Ankit Gupta
533a73c125 removing unused and already required require's
custom test - Does not include EnvHelpers and the require is not needed
path generation test - require abstract_unit which has .  rails/all requires rails and corresponding
2015-05-11 11:33:28 -04:00
Mehmet Emin İNAÇ
117bb54125 Refactor railties console and dbconsole commands
fix minor convention problems
2015-05-10 06:30:26 +03:00
Rafael Mendonça França
6d951bda36 Merge pull request #20063 from trayo/master
Adds documentaion for the Rails.root and Rails.public_path methods
2015-05-07 19:09:20 -03:00
Travis Yoder
b0b4b176b0 better docs for Rails.root and Rails.public_path 2015-05-07 10:54:26 -06:00
Ankit Gupta
27238ad1b8 require object/blank not used
the current class is not the blank?, present? as well as other inheriting, the test suite runs
2015-05-06 22:27:42 -04:00
Yves Senn
2d1a7b9c76 add test coverage for bin/setup.
Make sure this script keeps working and has consistent output.
2015-05-06 10:32:38 +02:00