Skip to content

Commit

Permalink
Fixed broken spec tests due to removal of an accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
h-kataria committed Feb 24, 2021
1 parent bbc4c19 commit d74d679
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions spec/controllers/automation_manager_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

get :explorer
accords = controller.instance_variable_get(:@accords)
expect(accords.size).to eq(2)
expect(accords.size).to eq(1)
breadcrumbs = controller.instance_variable_get(:@breadcrumbs)
expect(breadcrumbs[0]).to include(:url => '/automation_manager/show_list')
expect(response.status).to eq(200)
Expand All @@ -66,13 +66,13 @@
end

context "renders the explorer based on RBAC" do
it "renders explorer based on RBAC access to feature 'automation_manager_configured_system_tag'" do
login_as user_with_feature %w(automation_manager_configured_system_tag)
it "renders explorer based on RBAC access to feature 'automation_manager_refresh_provider'" do
login_as user_with_feature %w(automation_manager_refresh_provider)

get :explorer
accords = controller.instance_variable_get(:@accords)
expect(accords.size).to eq(1)
expect(accords[0][:name]).to eq("automation_manager_cs_filter")
expect(accords[0][:name]).to eq("automation_manager_providers")
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
end
Expand Down Expand Up @@ -366,12 +366,6 @@
allow(controller).to receive(:x_active_tree).and_return(:automation_manager_providers_tree)
controller.send(:get_node_info, key)
end

it "fetches list for Configured Systems accordion" do
key = ems_key_for_provider(automation_provider1)
allow(controller).to receive(:x_active_tree).and_return(:automation_manager_cs_filter_tree)
controller.send(:get_node_info, key)
end
end

describe "#build_credentials" do
Expand Down

0 comments on commit d74d679

Please sign in to comment.