Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ManageIQ/manageiq-ui-classic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 27f3c4e6a96c71b0c0e09bf93cf74d0728e6889f
Choose a base ref
..
head repository: ManageIQ/manageiq-ui-classic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 27a709667f537671d089899e0b77a04eb6918998
Choose a head ref
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/controllers/application_controller/ci_processing_spec.rb
10 changes: 5 additions & 5 deletions spec/controllers/application_controller/ci_processing_spec.rb
Original file line number Diff line number Diff line change
@@ -964,17 +964,17 @@
expect(controller).to receive(:show_list)
controller.send('orchestration_stack_delete')
flash_messages = assigns(:flash_array)
expect(flash_messages.first).to eq({:message => "Error during deletion: Unauthorized object or action",
:level => :error})
expect(flash_messages.first).to eq(:message => "Error during deletion: Unauthorized object or action",
:level => :error)
end

it "should render success flash message if OrchestrationStack deletion was initiated" do
controller.instance_variable_set(:@_params, :miq_grid_checks => orchestration_stack.id.to_s) # Orchestration Stack id that doesn't exist
controller.instance_variable_set(:@_params, :miq_grid_checks => orchestration_stack.id.to_s) # Orchestration Stack id that exists
expect(controller).to receive(:show_list)
controller.send('orchestration_stack_delete')
flash_messages = assigns(:flash_array)
expect(flash_messages.first).to eq({:message => "Delete initiated for 1 Orchestration Stacks from the ManageIQ Database",
:level => :success})
expect(flash_messages.first).to eq(:message => "Delete initiated for 1 Orchestration Stacks from the ManageIQ Database",
:level => :success)
end
end
end