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
Ryuta Kamizono 958c5ad9e9 Fix test_config_another_database failure
Somehow `test_config_another_database` didn't fail on CI, but it will
fail locally.

https://travis-ci.org/rails/rails/jobs/356212950#L2474-L2482

```
% bundle exec ruby -w -Itest test/generators/app_generator_test.rb -n test_config_another_database
Run options: -n test_config_another_database --seed 7260

# Running:

F

Failure:
AppGeneratorTest#test_config_another_database [test/generators/app_generator_test.rb:417]:
Expected /^\s*gem\s+["']mysql2["'], '~> 0.4.4'$*/ to match "source 'https://rubygems.org'\ngit_source(:github) { |repo| \"https://github.com/\#{repo}.git\" }\n\nruby '2.5.0'\n\n# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'\ngem 'rails', '~> 6.0.0.alpha'\n# Use mysql as the database for Active Record\ngem 'mysql2', '>= 0.4.4', '< 0.6.0'\n# Use Puma as the app server\ngem 'puma', '~> 3.11'\n# Use SCSS for stylesheets\ngem 'sass-rails', '~> 5.0'\n# Use Uglifier as compressor for JavaScript assets\ngem 'uglifier', '>= 1.3.0'\n# See https://github.com/rails/execjs#readme for more supported runtimes\n# gem 'mini_racer', platforms: :ruby\n\n# Use CoffeeScript for .coffee assets and views\ngem 'coffee-rails', '~> 4.2'\n# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks\ngem 'turbolinks', '~> 5'\n# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder\ngem 'jbuilder', '~> 2.5'\n# Use Redis adapter to run Action Cable in production\n# gem 'redis', '~> 4.0'\n# Use ActiveModel has_secure_password\n# gem 'bcrypt', '~> 3.1.7'\n\n# Use ActiveStorage variant\n# gem 'mini_magick', '~> 4.8'\n\n# Use Capistrano for deployment\n# gem 'capistrano-rails', group: :development\n\n# Reduces boot times through caching; required in config/boot.rb\ngem 'bootsnap', '>= 1.1.0', require: false\n\ngroup :development, :test do\n  # Call 'byebug' anywhere in the code to stop execution and get a debugger console\n  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]\nend\n\ngroup :development do\n  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.\n  gem 'web-console', '>= 3.3.0'\n  gem 'listen', '>= 3.0.5', '< 3.2'\n  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring\n  gem 'spring'\n  gem 'spring-watcher-listen', '~> 2.0.0'\nend\n\ngroup :test do\n  # Adds support for Capybara system testing and selenium driver\n  gem 'capybara', '>= 2.15', '< 4.0'\n  gem 'selenium-webdriver'\n  # Easy installation and use of chromedriver to run system tests with Chrome\n  gem 'chromedriver-helper'\nend\n\n# Windows does not include zoneinfo files, so bundle the tzinfo-data gem\ngem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]\n".

bin/rails test test/generators/app_generator_test.rb:411

Finished in 0.174681s, 5.7247 runs/s, 34.3483 assertions/s.
1 runs, 6 assertions, 1 failures, 0 errors, 0 skips
```
2018-03-22 03:20:04 +09:00
..
actions_test.rb Rails::Generators::Actions#execute_command allows option capture 2017-11-06 21:29:23 +00:00
api_app_generator_test.rb Add cop for preferring 'Foo.method' over 'Foo::method' 2018-02-22 06:26:48 +00:00
app_generator_test.rb Fix test_config_another_database failure 2018-03-22 03:20:04 +09:00
application_record_generator_test.rb
argv_scrubber_test.rb Fix "warning: assigned but unused variable - message" 2017-10-12 15:04:33 +09:00
assets_generator_test.rb
channel_generator_test.rb
controller_generator_test.rb Do not add routes when actions are not specified 2018-02-22 08:39:37 +09:00
create_migration_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
generated_attribute_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
generator_generator_test.rb
generator_test.rb
generators_test_helper.rb Use .tt extension to all the template files 2017-11-13 15:23:28 -05:00
helper_generator_test.rb
integration_test_generator_test.rb
job_generator_test.rb
mailer_generator_test.rb
migration_generator_test.rb
model_generator_test.rb Remove usage of strip_heredoc in the framework in favor of <<~ 2018-02-16 19:28:30 -05:00
named_base_test.rb Generate the correct path in nested scaffold generator 2017-11-05 13:46:28 +09:00
namespaced_generators_test.rb Use escaped character in regexp 2017-09-11 20:34:15 -04:00
orm_test.rb
plugin_generator_test.rb Improve generated file app/assets/javascripts/application.js of plugin 2018-02-23 23:05:20 +02:00
plugin_test_helper.rb
plugin_test_runner_test.rb Remove redundant passing --skip-active-storage in test cases 2017-11-08 21:39:35 +00:00
resource_generator_test.rb
scaffold_controller_generator_test.rb rails new runs rails active_storage:install 2017-11-06 21:29:14 +00:00
scaffold_generator_test.rb Remove field ids from scaffold form 2017-11-26 10:08:07 +09:00
shared_generator_tests.rb Add cop for preferring 'Foo.method' over 'Foo::method' 2018-02-22 06:26:48 +00:00
system_test_generator_test.rb
task_generator_test.rb
test_runner_in_engine_test.rb Remove redundant passing --skip-active-storage in test cases 2017-11-08 21:39:35 +00:00