diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-09-22 00:46:44 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-09-22 00:46:44 -0400 |
commit | d3b952184d8bdb6154aff1f8bc3eda58046026f6 (patch) | |
tree | b49246fa36ee850ef6a56ce01ec4322349ffff45 /railties/test/generators/plugin_generator_test.rb | |
parent | b18f2fe96debdcd0744f99101d1a1e0d42c41eaa (diff) | |
download | rails-d3b952184d8bdb6154aff1f8bc3eda58046026f6.tar.gz rails-d3b952184d8bdb6154aff1f8bc3eda58046026f6.tar.bz2 rails-d3b952184d8bdb6154aff1f8bc3eda58046026f6.zip |
Make sure this test check the issue solved in #31135
Before this change this test was passing even if we revert #31135. The
reason for that is that `app 'development'` will load the environment in
the test process and it is happening before db_create_and_drop is
called.
This was not asserting that the environment was loaded in the db:create
task itself.
To test it we enhance the db:create task with a block that writes to a
tmp file the value of the config. If the environment is loaded before
that task enhancement runs the content of the file will have "true"
insteand of "false".
Diffstat (limited to 'railties/test/generators/plugin_generator_test.rb')
0 files changed, 0 insertions, 0 deletions