Skip to content

Commit

Permalink
Spec for diagnostic zone server delete toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Mar 14, 2018
1 parent f150cad commit a7d0ea1
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
describe ApplicationHelper::Toolbar::MiqAeDomainCenter do
describe "definition of class" do
it "contains the server delete button" do
diagnostics_zone_center = Kernel.const_get("ApplicationHelper::Toolbar::DiagnosticsZoneCenter")
buttons = diagnostics_zone_center.definition["ldap_domain_vmdb"].buttons
button_names = []
buttons.each do |button|
button_names += button[:items].pluck(:id) if button[:items]
end
expect(button_names).to include("zone_delete_server")
end
end
end

0 comments on commit a7d0ea1

Please sign in to comment.