Commit Graph

1891 Commits

Author SHA1 Message Date
Terence Lee
44298c39e4 test DATABASE_URL without database.yml around 2013-02-21 01:25:05 +11:00
Carlos Antonio da Silva
a700917272 Fix rake routes output in railties test 2013-02-19 09:21:03 -03:00
Andrew White
9d9b22f47a Revert "Deprecate the eager_load_paths configuration"
Because of the possibility of lib being unintentionally eager loaded
it's been agreed that we'll leave autoload paths and eager load paths
separate for Rails 4.0.

This reverts commit 0757b3388ffe4f44b60de950d40e18ef05055931.

Conflicts:
	railties/CHANGELOG.md
2013-02-19 07:22:37 +00:00
Xavier Noria
40a10270c1 editorial tweaks 2013-02-19 01:34:17 +01:00
Steve Klabnik
f4f0264b45 Use strip_heredoc in the tests as well.
Thanks @sikachu. 😅
2013-02-18 16:26:25 -08:00
Steve Klabnik
d3b836ac4a Add message when you have no routes defined.
Print a message in both `rake routes` and at GET "/rails/info/routes"
that lets you know you have no routes defined, as well as linking to the
Rails Guide on the topic.
2013-02-18 16:09:37 -08:00
Akira Matsuda
57b0ae8011 Gist URLs are now namespaced
see: https://github.com/blog/1406-namespaced-gists
2013-02-18 23:59:48 +09:00
Rahul P. Chaudhari
afdb84a1fe Added notice message for destroy method in scaffold 2013-02-10 01:19:02 +05:30
Akira Matsuda
517cfbe110 --no-rc in the railties tests
so that the tester's local .railsrc file does not affect the test results
2013-02-01 22:10:45 +09:00
Guillermo Iguaran
3bccd12373 Remove BestStandardsSupport middleware 2013-01-29 14:20:58 -05:00
Rafael Mendonça França
9826823e66 Merge pull request #8303 from jeremywrowe/master
Fixes improper database name when creating a new rails app with a '.'

Conflicts:
	railties/CHANGELOG.md
2013-01-25 10:21:48 -02:00
Andrew White
0757b3388f Deprecate the eager_load_paths configuration
Since the default in Rails 4.0 is to run in 'threadsafe' mode we need
to eager load all of the paths in `autoload_paths` so we alias
`eager_load_paths` to it. This may have unintended consequences if
you have added 'lib' to `autoload_paths` such as loading unneeded
code or code intended only for development and/or test environments.
If this applies to your application you should thoroughly check what
is being eager loaded.
2013-01-24 23:54:41 +00:00
Carlos Antonio da Silva
b45c63b8c0 Revert "Set the default timezone after the initialization since the configuration"
This reverts commit 39374aa925a7d670b039c0c0c9aa9f4aef19466b.
2013-01-22 09:29:20 -02:00
Rafael Mendonça França
19bd2f2279 Merge pull request #8557 from timraymond/add_back_engines_and_deprecate
Adding Back Rails::Engine::Railties#engines

Conflicts:
	railties/CHANGELOG.md
2013-01-22 00:00:20 -02:00
Piotr Sarnacki
445f14e975 Fix asset_path in mounted engine
Historically serving assets from a mountable engine could be achieved by
running ActionDispatch::Static as a part of engine middleware stack or
to copy assets prefixed with an engine name. After introduction of
assets pipeline this is not needed as all of the assets are served or
compiled into main application's assets.

This commit removes the obsolete line making asset_path always generate
paths relative to the root or config.relative_url_root if it's set.

(closes #8119)
2013-01-21 21:21:39 +01:00
Rafael Mendonça França
57126ee5e3 Restore and adapt the implementation reverted at
cc1c3c5be0

Now instead of raise, we log by default in development and test
2013-01-19 15:32:27 -02:00
Akira Matsuda
8b0e52556e script => bin 2013-01-18 17:12:47 +09:00
Jeremy W. Rowe
c45980fe6e Fixes improper database name when a '.' is included while creating a new rails
application. EG: `rails new something.awesome.com`
Conflicts:
	railties/CHANGELOG.md
2013-01-16 15:12:31 -06:00
Brian D. Burns
5a9b3b7a74 allow :dirs option for .enumerate
Allows custom rake tasks to be defined using:

  SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
2013-01-15 14:14:05 -05:00
Nick Reed
dcb05f264a Account for ignored cookie set by turbolinks 2013-01-14 22:12:31 -06:00
Rafael Mendonça França
50454559f8 Add regression test to #8907 2013-01-14 00:20:32 -02:00
Pavel Pravosud
cca17296de More consistent quotes in scaffold generator 2013-01-11 10:26:39 +07:00
David Heinemeier Hansson
3bfd99defb Include jbuilder by default and rely on its scaffold generator to show json API. The default scaffold will now just create HTML if the user actively opts out of jbuilder 2013-01-10 20:21:22 +01:00
Yves Senn
ce8e3d3072 remove performance tests from the default stack 2013-01-10 17:09:06 +01:00
Yves Senn
3e1ed7818b extract PerformanceTest into rails-performance_tests gem 2013-01-10 17:09:06 +01:00
Aaron Patterson
ffa9540fd3 fire a notification when the request stops / starts 2013-01-09 15:34:58 -08:00
David Heinemeier Hansson
cc1c3c5be0 Revert "unpermitted params" exception -- it's just not going to work. See the discussion on https://github.com/rails/strong_parameters/pull/75. 2013-01-08 16:17:30 +01:00
Carlos Antonio da Silva
a0730e0027 Fix readme tests
Related to the change introduced in 6cf47c533d7d6784d34fc31406a335555e0c32b8.
2013-01-07 22:31:15 -02:00
Xavier Noria
553b6958dc doc/README_FOR_APP is no longer generated 2013-01-08 00:50:56 +01:00
Jeremy Kemper
009873aec8 Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. 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' 2013-01-06 21:41:36 -07:00
Rafael Mendonça França
23714ec33f Move config.filter_parameters to you own initializer file
This is very rarely changed and does not deserve to be in application.rb
2013-01-05 15:50:53 -03:00
Rafael Mendonça França
89979ca8ff Assert config.filter_parameters should be able to be set in a initializer 2013-01-05 15:05:28 -03:00
Rafael Mendonça França
4017f6c7e6 Make sure assets is disable when --skip-sprockets is used 2013-01-05 14:00:43 -03:00
David Heinemeier Hansson
201f8d7753 config.assets.enabled is now true by default 2013-01-05 17:56:53 +01:00
Carlos Antonio da Silva
7a34e0b1bd Remove warning "ambiguous first argument" 2013-01-05 09:45:34 -02:00
Rafael Mendonça França
1401f96492 Rename the configuration to raise_on_unpermitted_parameters
Also changed the exception to UnpermittedParameters
2013-01-05 06:39:51 -03:00
Rafael Mendonça França
58f52677e8 Ensure that raise_on_unexpected_params configuration will work 2013-01-05 06:23:28 -03:00
Rafael Mendonça França
fab7c53585 Merge pull request #8633 from mykola-kyryk/issue_8628
Allow environment name to start with a substring of the default
environment names.

Fixes #8628
2013-01-04 14:03:24 -08:00
Akira Matsuda
ab3cf010ad fix failing test broken in 15fb7889c5566ddade1d8f74f49bbbc1c0be6057 2013-01-05 05:44:03 +09:00
Mykola Kyryk
4fa6088b42 This commit fixes issue #8628
Allow environment name to start with a substring of the default
environment names.
For example: tes, pro, prod, dev, devel, etc.

Fixing identation.

Adding test for Rails::Console.parse_arguments method.

Fix issue 8628 for Rails::DBConsole.
2013-01-04 17:05:49 +02:00
Rafael Mendonça França
39374aa925 Set the default timezone after the initialization since the configuration
now lives in the application initializers.

Fix #8711
2013-01-04 00:25:08 -03:00
Tim Raymond
48d5a33269 Adding Back Rails::Engine::Railties#engines
Removing it breaks functionality with gems such as Thinking Sphinx.
This restores it with a deprecation warning. Closes #8551
2013-01-03 14:00:32 -05:00
Guillermo Iguaran
cb2bd4aa61 Merge pull request #8705 from amparo-luna/change_update_attributes_to_update
Rename update_attributes method to update
2013-01-03 09:09:59 -08:00
Amparo Luna + Guillermo Iguaran
0433d79724 Updating default application templates to use update instead of update_attributes 2013-01-03 12:04:25 -05:00
Akira Matsuda
1030b7b2d6 test PATCH method for update action in generated scaffold controller test rather than PUT 2013-01-03 20:21:18 +09:00
Andre Arko
75dcdbc84e Restore original remote_ip algorithm.
Proxy servers add X-Forwarded-For headers, resulting in a list of IPs. We
remove trusted IP values, and then take the last given value, assuming that
it is the most likely to be the correct, unfaked value. See [1] for a very
thorough discussion of why that is the best option we have at the moment.

[1]: http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/

Fixes #7979
2013-01-02 15:26:27 -08:00
Santiago Pastorino
cf2dcf4e9f Merge pull request #8666 from mekishizufu/fix_lambdas
Fix usage of lambda as a Rack endpoint
2012-12-31 09:09:11 -08:00
Rafael Mendonça França
5da4d5142a Add active_support/testing/autorun
minitest/autorun load minitest/spec polluting the global namespace with
the DSL that we don't want on Rails
2012-12-31 13:57:24 -03:00
Rafael Mendonça França
eb4930e3c7 Inherit from MiniTest::Unit::TestCase instead of MiniTest::Spec 2012-12-31 13:57:23 -03:00
Jiri Pospisil
dbacb95a21 Fix usage of lambda as a Rack endpoint
The response body needs to respond_to? :each.
2012-12-31 17:46:19 +01:00
Jeremy Kemper
1e9d6e7b56 Revert "Install binstubs by default"
This reverts commit f34c27a452418d8aa17f92bb0fd7ae97b5f7e252.

We'll be taking a different tack on this with new `bundle binstubs <gem>` support.
2012-12-28 14:23:01 -07:00
Jeremy Kemper
a79300a0d8 Revert "Detect rbenv and update the shebang"
This reverts commit 7173c4f931c9026bd3bc0b644d93dae744433f09.
This reverts commit a562f9fa09967eba26dff1c3bc8aa85b6f0a72ff.
2012-12-28 14:21:24 -07:00
Rafael Mendonça França
899cae25ec Consistent use of single and double quotes 2012-12-26 12:23:39 -03:00
Yves Senn
edae4777ad quote column names in generated fixture files 2012-12-26 16:17:47 +01:00
Carlos Antonio da Silva
7ab469c839 Merge pull request #8588 from marcandre/fix_reversible
Fix Migration#reversible by not using `transaction`.
2012-12-23 08:16:07 -08:00
Marc-Andre Lafortune
a4932d6a63 Fixes for PR [#8267]
* Fix Migration#reversible by not using `transaction`.

* Adapt mysql adapter to updated api for remove_column

* Update test after aedcd683684d08eaf30623a4b48ce31a31426372
2012-12-22 20:40:42 -05:00
Yehuda Katz
a562f9fa09 Forgot to check in railties fixture for binstubs 2012-12-22 12:18:35 -08:00
Yehuda Katz
cb025f850c Add --no-html to scaffold generator 2012-12-22 12:18:13 -08:00
Yehuda Katz
7173c4f931 Detect rbenv and update the shebang 2012-12-22 11:13:10 -08:00
Yehuda Katz
f34c27a452 Install binstubs by default 2012-12-22 10:57:50 -08:00
Jeremy Kemper
f9da785d0b Move background jobs to the 'jobs' branch until fully baked. Not shipping with Rails 4.0. 2012-12-21 16:29:47 -08:00
Andy Lindeman
6b692ee37c Correctly shows RAILS_ENV=development even when ENV['RAILS_ENV'] is not set (e.g., in Pow)
* Fixes #8025
2012-12-21 17:41:39 -05:00
Marc-Andre Lafortune
aedcd68368 Migration generators use change even for destructive methods [#8267] 2012-12-21 13:54:52 -05:00
Marc-Andre Lafortune
29ed612bd9 Simple replacement of variable name for consistency 2012-12-21 13:54:50 -05:00
Carlos Antonio da Silva
ebef8e944a Revert "Add test to deprecation of Path#children"
This reverts commit 29b1dc273e1ad6b9e13bf48fe3f12047850f9554.

Conflicts:
	railties/test/application/paths_test.rb

Reason: since 7f96e4317e1354852e9600becb16662de3c17691 was reverted,
Path#children is no longer deprecated.
2012-12-19 09:37:19 -02:00
Francesco Rodriguez
411e499677 update concerned tests 2012-12-18 17:25:16 -05:00
Rafael Mendonça França
7f96e4317e Revert "Merge pull request #7587 from elia/fix-too-eager-loading"
This reverts commit 3663057518eb9acf9b1e72f47dcb07038e6b7368.

REASON: This caused a regression that add app folder in the eager load
path. See #8146 for more information.

Conflicts:
	railties/CHANGELOG.md
2012-12-18 16:05:30 -03:00
schneems
8a59b87374 HTML formatting to Rails::InfoController#routes
This PR adds formatting and meta-data to the display of the internal routes. Users can now toggle between showing helpers with the `_path` or _`url` suffix. 

There are multiple ways to achieve this, this method uses partials for formatting and meta-data. The partials can be re-used when rendering `routing_error.erb`, though that will need to be in a separate PR.

![](http://f.cl.ly/items/3A2p3c1T1t2f2X2R2K2S/Screen%20Shot%202012-12-12%20at%202.28.01%20PM.png)


ATP Railties
2012-12-17 12:41:54 -06:00
Steve Klabnik
a8864aafe9 Revert "Fix failing test in railties"
This reverts commit 6bdc04624dcc0f45aab93af42d00224f67da36d5.

This has been reverted because 8554537e48
2012-12-14 15:51:12 -05:00
Andrew White
01d3a36bfe Clear url helper methods when routes are reloaded
Remove all the old url helper methods when clear! is called on the
route set because it's possible that some routes have been removed.
2012-12-14 13:22:36 +00:00
Carlos Antonio da Silva
6bdc04624d Fix failing test in railties
Related to the HTML route inspector changes:
ae68fc3864e99ab43c18fd12577744e1583f6b64
2012-12-14 09:38:31 -02:00
Arun Agrawal
601cc60a1b Fixed test names for generated_attribute_test.rb 2012-12-13 10:29:07 +05:30
Santiago Pastorino
603e7f7ea5 Merge pull request #8468 from schneems/schneems/rack-index-page
Use Rails to Render Default Index Page
2012-12-10 19:49:10 -08:00
Rafael Mendonça França
8dac9768b1 Make sure that no extra spaces are created with a non-polymorphic
attributes
2012-12-10 23:16:48 -03:00
schneems
baea5d69be Use Rails to Render Default Index Page
This is an alternative implementation to #7771 thanks to the advice of @spastorino

Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion.

This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required. 

In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated.

The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one). 

cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik

ATP Railties and Actionpack.
2012-12-10 16:15:04 -08:00
Rafael Mendonça França
190f638d39 Ensure the scaffold tests will pass when using references attributes 2012-12-10 00:35:03 -03:00
Rafael Mendonça França
95ccbd847d Add GeneratedAttribute#column_name to get the name of the column in the
database
2012-12-10 00:01:41 -03:00
Rafael Mendonça França
b05b77be9c Deal with polymorphic attributes correctly in the generators 2012-12-10 00:01:41 -03:00
Rafael Mendonça França
4a487f94b9 Make references and belongs_to attributes to generate the _id column in
fixtures
2012-12-10 00:01:40 -03:00
Rafael Mendonça França
3d8fcdd3bf Put the reference and belongs_to attributes in the scaffold tests. 2012-12-10 00:01:40 -03:00
Rafael Mendonça França
b4b8c26b6e Use the references and belongs_id ids in the scaffold_controller
generator
2012-12-09 16:32:54 -03:00
Rafael Mendonça França
95b7b02d12 Add test case for scaffold_controller generator without attributes.
This is a test for 978c568a7bffe354180aaefa471092182fed1015
2012-12-09 16:32:54 -03:00
Carlos Antonio da Silva
1233fc6de1 Fix scaffold controller generator tests 2012-12-08 14:37:15 -02:00
Francesco Rodriguez
cd526fe425 fix scaffold controller generator tests 2012-12-07 20:35:43 -05:00
Andrew White
af73e3cb15 Revert "Invert precedence of content in ActionDispatch::Static"
This reverts commit c59734f756b79c39486c45273d2cc5d42cd0c864.
2012-12-07 06:02:43 +00:00
Carlos Antonio da Silva
cf05e5f6ea Stop shelling out more than necessary 2012-12-07 00:06:08 -02:00
Carlos Antonio da Silva
43c284297b Run rake tasks all at once in rake dbs test for a speed up
Before:

    Finished tests in 56.245787s, 0.2133 tests/s, 0.0000 assertions/s.
    12 tests, 0 assertions, 0 failures, 0 errors, 0 skips

After:
    Finished tests in 42.401416s, 0.2830 tests/s, 0.0000 assertions/s.
    12 tests, 0 assertions, 0 failures, 0 errors, 0 skips
2012-12-06 21:43:14 -02:00
Andrew White
c59734f756 Invert precedence of content in ActionDispatch::Static
This commit inverts the precedence in ActionDispatch::Static so that
dynamic content will be served before static content. This is so that
precompiled assets do not inadvertently get included when running in
development mode - it should have no effect in production where static
files are usually handled by the web server.

Closes #6421
2012-12-06 17:20:53 +00:00
Carlos Antonio da Silva
5a8f25f003 Refactor tests that switch RAILS_ENV and RACK_ENV
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.
2012-12-06 10:47:14 -02:00
Carlos Antonio da Silva
b6f0978108 Fix duplicated method name
[ci skip]
2012-12-05 15:27:19 -02:00
kennyj
a7695579a5 Add ENV['RACK_ENV'] support to rake runner/console/server. 2012-12-06 02:05:33 +09:00
Carlos Antonio da Silva
137f3be81b Fix failing tests related to rake notes
Related to changes introduced in 553b563749517114323b4e8742509227e0daab67
2012-12-03 09:24:13 -02:00
Antonio Cangiano
553b563749 Add db to the list of default annotation folders 2012-12-01 12:23:39 -08:00
Rafael Mendonça França
ccecab3ba9 Remove observers and sweepers
They was extracted from a plugin.

See https://github.com/rails/rails-observers

[Rafael Mendonça França + Steve Klabnik]
2012-11-28 22:46:49 -02:00
Rashmi Yadav
585e64fb14 Unused variable warning removed 2012-11-27 15:24:25 +05:30
Carlos Antonio da Silva
8df46eac76 Refactor generators tests to include test helpers in the parent class 2012-11-27 00:07:48 -02:00
Carlos Antonio da Silva
53aefdec91 Fix rails db command with sqlite3 database
When using sqlite3 it was attempting to find the database file based on
Rails.root, the problem is that Rails.root is not always present because
we try to first manually load "config/database.yml" instead of loading
the entire app, to make "rails db" faster.

This means that when we're in the root path of the app, calling "rails db"
won't allow us to use Rails.root, making the command fail for sqlite3
with the error:

    ./rails/commands/dbconsole.rb:62:in `start':
      undefined method `root' for Rails:Module (NoMethodError)

The fix is to simply not pass any dir string to File.expand_path, which
will make it use the current directory of the process as base, or the
root path of the app, which is what we want.

When we are in any other subdirectory, calling "rails db" should work
just fine, because "config/database.yml" won't be found, thus "rails db"
will fallback to loading the app, making Rails.root available.

Closes #8257.
2012-11-18 23:52:39 -02:00
Santiago Pastorino
8eefdb6d70 Add UpgradeSignatureToEncryptionCookieStore
This allows easy upgrading from the old signed Cookie Store <= 3.2
or the deprecated one in 4.0 (the ones that doesn't use key derivation)
to the new one that signs using key derivation
2012-11-16 17:29:26 -02:00
Santiago Pastorino
571b747ed2 Remove duplicated get /foo/write_session 2012-11-16 17:29:25 -02:00
Santiago Pastorino
1acdc4d930 Remove unused config option 2012-11-16 17:29:25 -02:00
Santiago Pastorino
ef8b845de7 Merge pull request #8112 from rails/encrypted_cookies
Encrypted cookies
2012-11-15 12:17:25 -08:00
Aaron Patterson
e5946e0396 asset compilation should not require a database connection 2012-11-13 16:35:16 -08:00
Rafael Mendonça França
3c5c93b2eb Merge pull request #8169 from nicolasdespres/robust_git_repository_check
Rake test:uncommitted finds git directory in ancestors.
2012-11-13 13:51:19 -08:00
Arun Agrawal
5ff5cce81a Removing warning : ambiguous first argument 2012-11-11 15:16:35 +05:30
Nicolas Despres
df822961ee Rake test:uncommitted finds git directory in ancestors.
Sometimes your git directory is an ancestor of your application root
directory.

For example:
 ./repo/.git/
 ./repo/app/Rakefile

In this case rake test:uncommitted will be unable to detect your SCM.

This patch fixes this and add a test.
2012-11-10 20:39:04 +01:00
Arun Agrawal
c33c991eab Removing warning : assigned but unused variable 2012-11-10 17:34:39 +05:30
Yves Senn
1785bf7d67 plugin new adds dummy app tasks when necessary.
Closes #8121

The `plugin new` generator always adds the dummy app rake tasks,
when a dummy app was created.
2012-11-08 13:08:19 +01:00
Carlos Antonio da Silva
1fef1bedbc Remove some line breaks between array items that make the assert file tests harder to read 2012-11-04 19:22:05 -02:00
Santiago Pastorino
4faa041845 Rename secret_token_key to secret_key_base 2012-11-03 14:57:54 -02:00
Santiago Pastorino
5d23925f84 Use derived keys everywhere, http_authentication was missing it 2012-11-03 14:57:54 -02:00
Santiago Pastorino
fb0cea2b8c Add encrypted cookie store 2012-11-03 14:57:54 -02:00
Santiago Pastorino
60609bb50d Sign cookies using key deriver 2012-11-03 14:57:53 -02:00
Arun Agrawal
d065938663 Small change to remove warning unused variable. 2012-11-01 10:25:20 +05:30
Carlos Antonio da Silva
72e6fb005f Fix deprecation message in test for Path#children 2012-10-29 12:53:32 -02:00
Rafael Mendonça França
29b1dc273e Add test to deprecation of Path#children 2012-10-29 11:14:20 -02:00
Rafael Mendonça França
3663057518 Merge pull request #7587 from elia/fix-too-eager-loading
Should not eager_load app/assets
Conflicts:
	railties/CHANGELOG.md
2012-10-29 11:14:14 -02:00
Jeremy Kemper
bf2009f995 Job consumer logs to Rails.logger by default 2012-10-26 16:18:52 -07:00
Tima Maslyuchenko
ff29dd8309 changed test case name 2012-10-23 12:43:11 +03:00
Rafael Mendonça França
ff79df004c Remove warning setting eager_load 2012-10-18 14:34:26 -03:00
Rafael Mendonça França
90733e70d7 Don't use action_controller.perform_caching to enable rack-rack.
Setting the action_dispatch.rack_cache options to true or a hash should
be the way to enable it.
2012-10-18 14:34:26 -03:00
Rafael Mendonça França
12fb9372bf Fix the app_generator and plugin_new tests 2012-10-18 14:34:26 -03:00
Joshua Peek
b8c7e31a57 Switch to new sprockets-rails plugin 2012-10-15 18:22:12 -05:00
Joshua Peek
c800e27ad3 Merge branch 'master' into asset-path-helper
Conflicts:
	railties/test/application/configuration_test.rb
2012-10-15 10:20:50 -05:00
Joshua Peek
7dba1599d9 Remove old asset_path from rails config 2012-10-15 09:51:20 -05:00
Jeremy Kemper
4e8cf43ff9 Fix typo in #7941 2012-10-14 10:20:07 -07:00
Robin Dupret
5ad7f8ab41 Use Ruby 1.9 Hash syntax in railties 2012-10-14 18:26:58 +02:00
Jeremy Kemper
1fd8926056 Test that a Rails.queue consumer is automatically started in production 2012-10-13 09:54:34 -07:00
Jeremy Kemper
c8fe0d58bc Backpedal from class-oriented config.queue. Set an actual queue instance. 2012-10-12 22:27:41 -07:00
Jeremy Kemper
1dc2ea8f3d Tighten up asset precompile tests 2012-10-12 20:44:32 -07:00
Jeremy Kemper
775829869e Remove the queue container. Premature consolidation. Set up and maintain queues in the classes that use them instead. 2012-10-12 19:38:40 -07:00
Rafael Mendonça França
a284b145da ActiveSupport::SynchronousQueue doesn't have the drain method.
Now we are using teh SynchronousQueue in the test environment instead of
the TestQueue
2012-10-12 14:43:01 -03:00
Rafael Mendonça França
08f57bfb8f Move the TestQueue tests to the proper file 2012-10-12 14:42:26 -03:00
Brent J. Nordquist
06129c0e3f Add .rake to rake notes and rake notes:custom 2012-10-12 10:52:22 -05:00
Jeremy Kemper
79db8db415 Immediately run queued jobs in tests. Otherwise you have to explicitly drain the queue to actually deliver your emails. 2012-10-12 07:49:44 -07:00
Arun Agrawal
fdc4c841c4 No need to test for rack-cache present in Gemfile
as it's removed here 
1fc795468525d8622cdca474a54c8310a514aa46
2012-10-11 11:54:31 +05:30
Arun Agrawal
3121ac06a9 warning fixed: ambiguous first argument; put parentheses or even spaces 2012-10-10 10:40:14 +05:30
Mike Moore
2a68f68aea Update test locations
Change the default test locations to avoid confusion around the common
testing terms "unit" and "functional".
Add new rake tasks for the new locations, while maintaining backwards
compatibility with the old rake tasks.

New testing locations are as follows:

    app/models -> test/models (was test/units)
    app/helpers -> test/helpers (was test/units/helpers)
    app/controllers -> test/controllers (was test/functional)
    app/mailers -> test/mailers (was test/functional)
2012-10-09 17:53:56 -06:00
Guillermo Iguaran
69b1716d23 Remove duplicated test 2012-10-09 11:51:44 -05:00
Guillermo Iguaran
39928c8db2 Minor test refactoring: Use add_to_env instead of an initializer 2012-10-09 11:51:29 -05:00
Guillermo Iguaran
37b3ed17e0 Fix middleware cache tests enabling rack_cache 2012-10-05 14:03:13 -05:00
Guillermo Iguaran
586a991830 config.action_dispatch.rack_cache should set explicitly to enable Rack::Cache 2012-10-04 21:36:00 -05:00
Rafael Mendonça França
4b33bbc803 Use String#exclude? to make sure that Active Support is not loaded when
bare is true.

We need to change this since coffee-rails loads ActionView that loads
core_ext/array/access.
2012-10-04 18:17:05 -03:00
Rafael Mendonça França
a216f918b2 Remove action cache related tests 2012-10-04 18:17:03 -03:00
Prem Sichanugrist
26fe77b27d Make Rails.public_path return a Pathname 2012-10-02 20:44:02 -04:00
Michael Koziarski
0a507925cf Merge pull request #6952 from NZKoz/key_generator
Add ActiveSupport::KeyGenerator as a simple wrapper around PBKDF2
2012-10-02 14:26:16 -07:00
Santiago Pastorino
037e50ec39 Merge pull request #7794 from guilleiguaran/extract-rack-cache
Use Rack::Cache middleware only if is in Gemfile
2012-10-01 19:52:52 -07:00
Guillermo Iguaran
f4a6f1d3f0 Add rack-cache to default Gemfile 2012-10-01 21:51:39 -05:00
Jeremy Walker
b09e5922e1 Fix broken scaffold routes test 2012-10-01 03:52:24 +01:00
Michael Koziarski
0479bff32d Provide access to the application's KeyGenerator
Available both as an env entry for rack and an instance method on Rails::Application for other uses
2012-10-01 15:34:12 +13:00
Jeremy Walker
a3117335cc Fixed generated whitespace in routes when using namespaced resource. 2012-09-29 16:39:27 +01:00