-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use correct local variable for label_for_search_field and sort_field_label #1713
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
/app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_r...
/app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:15:inrequire': cannot load such file -- rubocop-rspec (LoadError)<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:15:in
block in resolve_requires'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:11:ineach'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:11:in
resolve_requires'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb:40:inload_file'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb:105:in
configuration_from_file'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_store.rb:44:infor'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb:93:in
apply_default_formatter'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb:25:inrun'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/bin/rubocop:13:in
block in <top (required)>'
from /app/vendor/ruby-2.3.1/lib/ruby/2.3.0/benchmark.rb:308:inrealtime'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/bin/rubocop:12:in
<top (required)>'
from /app/vendor/bundle/ruby/2.3.0/bin/rubocop:23:inload'<br> from /app/vendor/bundle/ruby/2.3.0/bin/rubocop:23:in
'
Could you write a test for this case (which was apparently uncovered before?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
/app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_r...
/app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:15:inrequire': cannot load such file -- rubocop-rspec (LoadError)<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:15:in
block in resolve_requires'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:11:ineach'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:11:in
resolve_requires'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb:40:inload_file'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb:105:in
configuration_from_file'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_store.rb:44:infor'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb:93:in
apply_default_formatter'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb:25:inrun'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/bin/rubocop:13:in
block in <top (required)>'
from /app/vendor/ruby-2.3.1/lib/ruby/2.3.0/benchmark.rb:308:inrealtime'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/bin/rubocop:12:in
<top (required)>'
from /app/vendor/bundle/ruby/2.3.0/bin/rubocop:23:inload'<br> from /app/vendor/bundle/ruby/2.3.0/bin/rubocop:23:in
'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
/app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_r...
/app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:15:inrequire': cannot load such file -- rubocop-rspec (LoadError)<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:15:in
block in resolve_requires'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:11:ineach'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb:11:in
resolve_requires'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb:40:inload_file'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb:105:in
configuration_from_file'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/config_store.rb:44:infor'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb:93:in
apply_default_formatter'
from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb:25:inrun'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/bin/rubocop:13:in
block in <top (required)>'
from /app/vendor/ruby-2.3.1/lib/ruby/2.3.0/benchmark.rb:308:inrealtime'<br> from /app/vendor/bundle/ruby/2.3.0/gems/rubocop-0.46.0/bin/rubocop:12:in
<top (required)>'
from /app/vendor/bundle/ruby/2.3.0/bin/rubocop:23:inload'<br> from /app/vendor/bundle/ruby/2.3.0/bin/rubocop:23:in
'
Ok, I've added tests for those 2 methods. |
This PR corrects a
NameError
when these methods are called -- it cannot find the local variable/methodfield
in these 2 methods.