Skip to content

Commit

Permalink
Fix code style offenses detected by Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Vecerek committed Oct 27, 2016
1 parent 33f9781 commit a194d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/application_helper/toolbar_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def build_toolbar_hide_button_ops(id)
when "diagnostics_summary"
return !["refresh_server_summary", "restart_server"].include?(id)
when "diagnostics_workers"
return !["restart_workers", "refresh_workers"].include?(id)
return !%w(restart_workers refresh_workers).include?(id)
else
return true
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
it 'should be visible when active_tab == diagnostics_workers in :diagnostics_tree' do
view_context = setup_view_context_with_sandbox({})
button = described_class.new(view_context, {}, {'record' => @record}, {})
button.instance_variable_set(:@sb, {:active_tab => 'diagnostics_workers'})
button.instance_variable_set(:@sb, :active_tab => 'diagnostics_workers')
expect(button.visible?).to be_truthy
end

Expand Down

0 comments on commit a194d8e

Please sign in to comment.