Skip to content

Commit

Permalink
missed one spec
Browse files Browse the repository at this point in the history
  • Loading branch information
MelsHyrule committed Apr 21, 2022
1 parent 0110b25 commit 0d2ae60
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/controllers/ops_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@
post :change_tab, :params => {:tab_id => "diagnostics_collect_logs"}
end

it "does not render toolbar buttons when edit is clicked" do
post :x_button, :params => {:id => @miq_server.id, :pressed => 'log_depot_edit', :format => :js}
expect(response.status).to eq(200)
expect(JSON.parse(response.body)['reloadToolbars']).to match([nil, nil])
end

it "renders toolbar buttons when cancel is clicked" do
allow(controller).to receive(:diagnostics_set_form_vars)
post :x_button, :params => {:id => @miq_server.id, :pressed => 'log_depot_edit', :button => "cancel", :format => :js}
Expand Down

0 comments on commit 0d2ae60

Please sign in to comment.