1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
yuuji.yaginuma d5defda77f Fix "warning: instance variable @defined_root not initialized"
Currently, the following error is shows only when run the test using
`bin/test`.

```
./bin/test -w test/template/log_subscriber_test.rb
Run options: --seed 17167

# Running:

/rails/actionview/test/template/log_subscriber_test.rb:34: warning: instance variable @defined_root not initialized
```

In `AVLogSubscriberTest`, if the `Rails.root` is not defined, define the
method and undef it in teardown.
https://github.com/rails/rails/blob/master/actionview/test/template/log_subscriber_test.rb#L21..L33

However, in `bin/test`, `Rails.root` is defined, which results in referring to
uninitialized variables and warnings.
2017-11-02 10:08:21 +09:00
..
actionpack Merge pull request #31005 from shuheiktgw/remove_unnecessary_semicolons 2017-10-28 22:55:34 +10:30
activerecord Remove unused methods from RenderPartialWithRecordIdentificationController 2017-09-30 17:38:27 +09:00
fixtures Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
lib/controller Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
template Fix "warning: instance variable @defined_root not initialized" 2017-11-02 10:08:21 +09:00
tmp Unify the internal source control .keep file name 2017-08-24 13:40:26 +09:00
ujs Enable to call Rails.ajax without beforeSend 2017-10-28 12:13:19 +09:00
abstract_unit.rb Include ActionDispatch::DrawOnce in ActiveSupport::TestCase 2017-09-27 08:51:37 +09:00
active_record_unit.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00