diff options
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/api/task.rb | 24 | ||||
-rw-r--r-- | railties/lib/rails/tasks/engine.rake | 2 | ||||
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 10 |
3 files changed, 18 insertions, 18 deletions
diff --git a/railties/lib/rails/api/task.rb b/railties/lib/rails/api/task.rb index fac8155579..bc670b1d75 100644 --- a/railties/lib/rails/api/task.rb +++ b/railties/lib/rails/api/task.rb @@ -5,29 +5,29 @@ module Rails class Task < RDoc::Task RDOC_FILES = { "activesupport" => { - :include => %w( + include: %w( README.rdoc lib/active_support/**/*.rb ), - :exclude => "lib/active_support/vendor/*" + exclude: "lib/active_support/vendor/*" }, "activerecord" => { - :include => %w( + include: %w( README.rdoc lib/active_record/**/*.rb ) }, "activemodel" => { - :include => %w( + include: %w( README.rdoc lib/active_model/**/*.rb ) }, "actionpack" => { - :include => %w( + include: %w( README.rdoc lib/abstract_controller/**/*.rb lib/action_controller/**/*.rb @@ -36,40 +36,40 @@ module Rails }, "actionview" => { - :include => %w( + include: %w( README.rdoc lib/action_view/**/*.rb ), - :exclude => "lib/action_view/vendor/*" + exclude: "lib/action_view/vendor/*" }, "actionmailer" => { - :include => %w( + include: %w( README.rdoc lib/action_mailer/**/*.rb ) }, "activejob" => { - :include => %w( + include: %w( README.md lib/active_job/**/*.rb ) }, "actioncable" => { - :include => %w( + include: %w( README.md lib/action_cable/**/*.rb ) }, "railties" => { - :include => %w( + include: %w( README.rdoc lib/**/*.rb ), - :exclude => "lib/rails/generators/rails/**/templates/**/*.rb" + exclude: "lib/rails/generators/rails/**/templates/**/*.rb" } } diff --git a/railties/lib/rails/tasks/engine.rake b/railties/lib/rails/tasks/engine.rake index dcf8c0e292..c92b42f6c1 100644 --- a/railties/lib/rails/tasks/engine.rake +++ b/railties/lib/rails/tasks/engine.rake @@ -2,7 +2,7 @@ task "load_app" do namespace :app do load APP_RAKEFILE end - task :environment => "app:environment" + task environment: "app:environment" if !defined?(ENGINE_ROOT) || !ENGINE_ROOT ENGINE_ROOT = find_engine_path(APP_RAKEFILE) diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index 0deca8dbcf..d172106302 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -21,10 +21,10 @@ namespace :test do # If used with Active Record, this task runs before the database schema is synchronized. end - task :run => %w[test] + task run: %w[test] desc "Run tests quickly, but also reset db" - task :db => %w[db:test:prepare test] + task db: %w[db:test:prepare test] ["models", "helpers", "controllers", "mailers", "integration", "jobs"].each do |name| task name => "test:prepare" do @@ -33,17 +33,17 @@ namespace :test do end end - task :generators => "test:prepare" do + task generators: "test:prepare" do $: << "test" Minitest.rake_run(["test/lib/generators"]) end - task :units => "test:prepare" do + task units: "test:prepare" do $: << "test" Minitest.rake_run(["test/models", "test/helpers", "test/unit"]) end - task :functionals => "test:prepare" do + task functionals: "test:prepare" do $: << "test" Minitest.rake_run(["test/controllers", "test/mailers", "test/functional"]) end |