1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/generators
Prathamesh Sonpatki 63ac6255ba
Cable: Generate .js or .coffee files while generating channel as per the javascript engine of the application
- Now we will detect what javascript engine user is using and based on
  that we will generate either `.js` or `.coffee` version of the channel
  file.
- This also needs a change in coffee-rails to override the `js_template`
  method. Related PR https://github.com/rails/coffee-rails/pull/72.
- Currently coffee-rails gem sets
  `config.app_generators.javascript_engine` to `:coffee` and using this
  information we override the `js_template` to set the extension as
  `.coffee` in coffee-rails gem.
- Using this approach, we can keep the `channel.js` and `channel.coffee`
  files in the Rails repository itself.
- Additionally the `js_template` method can act as public interface for
  coffee-rails gem to hook into and change the extension to `.coffee`
  without maintaining the actual asset files.

[Prathamesh Sonpatki, Matthew Draper]
2016-05-17 18:12:19 +05:30
..
actions_test.rb AppGenerator: allow both 'rake' and 'rails' 2016-03-09 07:29:17 -08:00
api_app_generator_test.rb generate mailer views in Rails API 2016-02-15 22:13:32 +09:00
app_generator_test.rb Add compatibility for Ruby 2.4 to_time changes 2016-04-23 15:03:50 +01:00
argv_scrubber_test.rb Revert "Merge pull request #15305 from tgxworld/remove_unnecessary_require" 2014-07-30 09:46:33 -03:00
assets_generator_test.rb Remove unnecessary comment. 2012-05-23 11:45:08 +03:00
channel_generator_test.rb Cable: Generate .js or .coffee files while generating channel as per the javascript engine of the application 2016-05-17 18:12:19 +05:30
controller_generator_test.rb fix indent in routes when using namespaced controllers 2015-04-14 09:34:51 +09:00
create_migration_test.rb Add CreateMigration action 2014-01-28 00:01:19 +01:00
generated_attribute_test.rb test, Generators::GeneratedAttribute with references, required, index. 2014-10-16 15:50:13 +02:00
generator_generator_test.rb Stop reading the same file twice for testing different content 2013-07-22 22:43:38 -03:00
generator_test.rb Allow normal version updates within a release series 2015-12-18 18:02:21 +10:30
generators_test_helper.rb Cleaned up generators tests using internal assertion helper 2015-08-20 09:22:56 +05:30
helper_generator_test.rb Bring back the helpers tests 2014-08-05 14:04:30 +02:00
integration_test_generator_test.rb
job_generator_test.rb generate ApplicationJob if it does not already exist 2016-03-25 13:21:37 +09:00
mailer_generator_test.rb Fix generator test to match to use the string 2016-03-21 14:07:38 -03:00
migration_generator_test.rb Pare back default index option for the migration generator 2016-01-24 18:48:15 +05:30
model_generator_test.rb Generate ApplicationRecord if it does not already exist 2016-02-22 20:45:36 -05:00
named_base_test.rb Removed duplicate requiring minitest/mock as it is already required in method_call_assertions 2015-08-26 19:43:54 +05:30
namespaced_generators_test.rb Update test generators to use ActionDispatch::IntegrationTest 2015-12-15 15:19:16 -05:00
orm_test.rb Use Ruby 1.9 Hash syntax in railties 2012-10-14 18:26:58 +02:00
plugin_generator_test.rb generate ApplicationJob if it does not already exist 2016-03-25 13:21:37 +09:00
plugin_test_helper.rb show relative path the rerun snippet of test runner in rails engine 2015-12-10 16:08:37 +09:00
plugin_test_runner_test.rb fix build broken by 07e422f58d. 2016-02-15 15:57:14 +01:00
resource_generator_test.rb Update test generators to use ActionDispatch::IntegrationTest 2015-12-15 15:19:16 -05:00
scaffold_controller_generator_test.rb Update test generators to use ActionDispatch::IntegrationTest 2015-12-15 15:19:16 -05:00
scaffold_generator_test.rb make rake proxy work in rails engines 2016-01-31 09:49:48 +09:00
shared_generator_tests.rb ApplicationMailer should be generated by default just like every other Application* parent 2015-12-17 17:35:20 -02:00
task_generator_test.rb Added test when task generator called on revoke 2013-11-23 17:04:30 +01:00
test_runner_in_engine_test.rb fixing the build take II. 😓 2016-02-15 16:47:51 +01:00