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/application
utilum 74982a1be5 Fix test to allow IF NOT EXISTS in structure:dump
Before:

```
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

$ ruby -w  -Itest -Ilib -I../activesupport/lib -I../actionpack/lib -I../actionview/lib -I../activemodel/lib test/application/rake/multi_dbs_test.rb
Run options: --seed 28744

F

Failure:
ApplicationTests::RakeTests::RakeMultiDbsTest#test_db:migrate_and_db:structure:dump_and_db:structure:load_works_on_all_databases [test/application/rake/multi_dbs_test.rb:70]:
Expected /CREATE TABLE \"books\"/ to match "CREATE TABLE IF NOT EXISTS \"schema_migrations\" (\"version\" varchar NOT NULL PRIMARY KEY);\nCREATE TABLE IF NOT EXISTS \"ar_internal_metadata\" (\"key\" varchar NOT NULL PRIMARY KEY, \"value\" varchar, \"created_at\" datetime NOT NULL, \"updated_at\" datetime NOT NULL);\nCREATE TABLE IF NOT EXISTS \"books\" (\"id\" integer PRIMARY KEY AUTOINCREMENT NOT NULL, \"title\" varchar, \"created_at\" datetime NOT NULL, \"updated_at\" datetime NOT NULL);\nCREATE TABLE sqlite_sequence(name,seq);\nINSERT INTO \"schema_migrations\" (version) VALUES\n('20180416201805');\n\n\n".
```
2018-04-16 22:19:07 +02:00
..
configuration Use respond_to test helpers 2018-01-25 23:32:58 -05:00
initializers Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
middleware Remove extra whitespace 2018-01-25 23:32:59 -05:00
rack Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
rake Fix test to allow IF NOT EXISTS in structure:dump 2018-04-16 22:19:07 +02:00
asset_debugging_test.rb Pass the skip_pipeline option in image_submit_tag 2018-03-14 11:18:06 +00:00
assets_test.rb Remove needless silence_warnings 2017-09-09 09:48:15 +09:00
bin_setup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
configuration_test.rb Merge pull request #32065 from sikachu/move-SourceAnnotationExtractor-under-rails-namespec 2018-04-02 16:15:52 +02:00
console_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
content_security_policy_test.rb Remove trailing semi-colon from CSP 2018-02-19 12:20:43 +00:00
current_attributes_integration_test.rb Don't need the layout here 2017-09-04 05:44:45 +09:30
dbconsole_test.rb Remove redundant execution of Dir.chdir(app_path) { } in railties' tests 2017-10-08 23:04:04 +03:00
generators_test.rb Do not show credentials in generators help 2017-11-09 20:59:16 +09:00
help_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
integration_test_case_test.rb rails new runs rails active_storage:install 2017-11-06 21:29:14 +00:00
loading_test.rb Use lazy load hook to configure ActiveStorage::Blob 2018-02-25 00:54:27 +00:00
mailer_previews_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
middleware_test.rb Multipart file uploads are very rare in API only apps so don't include Rack::TemfileReaper in default middleware stack for API only apps 2018-02-17 15:52:41 -05:00
multiple_applications_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
paths_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
per_request_digest_cache_test.rb Use SHA-1 for non-sensitive digests by default 2018-01-08 20:45:46 +00:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Autocorrect refute RuboCop violations 2018-04-03 22:35:49 -04:00
rendering_test.rb Fix RenderingTest in railtie 2018-04-04 06:12:24 +09:00
routing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
runner_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
server_test.rb Improve the deprecation message for using subclass of Rails::Application to start the Rails server 2018-01-07 20:48:53 +05:30
test_runner_test.rb Remove needless print 2018-02-17 10:08:51 +09:00
test_test.rb Add test parallelization to Rails 2018-02-15 19:21:24 -05:00
url_generation_test.rb Add credentials using a generic EncryptedConfiguration class (#30067) 2017-09-11 20:21:20 +02:00
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30