1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview
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
..
app/assets/javascripts Enable to call Rails.ajax without beforeSend 2017-10-28 12:13:19 +09:00
bin Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
lib Merge pull request #31004 from shuheiktgw/remove_unnecessary_returns 2017-10-31 01:47:35 -04:00
test Fix "warning: instance variable @defined_root not initialized" 2017-11-02 10:08:21 +09:00
.gitignore Add rails-ujs to Action View 2016-11-26 01:23:07 -05:00
actionview.gemspec Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
blade.yml Add rails-ujs to Action View 2016-11-26 01:23:07 -05:00
CHANGELOG.md Remove deprecated Erubis ERB handler 2017-10-23 12:50:31 -04:00
coffeelint.json Test rails-ujs in our travis matrix 2017-02-22 13:49:28 -05:00
MIT-LICENSE Bump license years for 2017 2016-12-31 08:34:08 -05:00
package.json Fix test directory to correct path 2017-07-30 16:28:10 +09:00
Rakefile Return correct exit status of ujs test 2017-10-20 15:08:48 +09:00
README.rdoc Update MIT licenses link [ci skip] 2017-08-22 08:46:02 +09:00
RUNNING_UJS_TESTS.rdoc Wrong rake task name in the document 2016-12-24 07:04:34 +09:00
RUNNING_UNIT_TESTS.rdoc

= Action View

Action View is a framework for handling view template lookup and rendering, and provides
view helpers that assist when building HTML forms, Atom feeds and more.
Template formats that Action View handles are ERB (embedded Ruby, typically
used to inline short Ruby snippets inside HTML), and XML Builder.

== Download and installation

The latest version of Action View can be installed with RubyGems:

  $ gem install actionview

Source code can be downloaded as part of the Rails project on GitHub

* https://github.com/rails/rails/tree/master/actionview


== License

Action View is released under the MIT license:

* https://opensource.org/licenses/MIT


== Support

API documentation is at

* http://api.rubyonrails.org

Bug reports can be filed for the Ruby on Rails project here:

* https://github.com/rails/rails/issues

Feature requests should be discussed on the rails-core mailing list here:

* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core