Skip to content

Commit

Permalink
Merge pull request #3324 from lgalis/update_container_controllers_bre…
Browse files Browse the repository at this point in the history
…adcrumbs_specs

Update container specs to match the new aliases
  • Loading branch information
Dan Clarizio authored Jan 25, 2018
2 parents 190984f + 8c360f5 commit 92dcdf7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/container_build_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(response).to render_template('shared/summary/_textual_multilabel')
expect(assigns(:breadcrumbs)).to eq([{:name => "Builds",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Builds",
:url => "/container_build/show_list?page=&refresh=y"},
{:name => "Test Build (Summary)",
:url => "/container_build/show/#{container_build.id}"}])
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/container_group_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
get :show, :params => { :id => container_group.id }
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Pods",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Pods",
:url => "/container_group/show_list?page=&refresh=y"},
{:name => "Test Group (Summary)",
:url => "/container_group/show/#{container_group.id}"}])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
get :show, :params => { :id => container_image_registry.id }
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Image Registries",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Image Registries",
:url => "/container_image_registry/show_list?page=&refresh=y"},
{:name => "Test Image Registry (Summary)",
:url => "/container_image_registry/show/#{container_image_registry.id}"}])
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/container_node_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
get :show, :params => { :id => container_node.id }
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Nodes",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Nodes",
:url => "/container_node/show_list?page=&refresh=y"},
{:name => "Test Node (Summary)",
:url => "/container_node/show/#{container_node.id}"}])
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/container_project_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
get :show, :params => { :id => container_project.id, :display => 'main' }
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Projects",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Projects",
:url => "/container_project/show_list?page=&refresh=y"},
{:name => "Test Project (Summary)",
:url => "/container_project/show/#{container_project.id}"}])
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/container_replicator_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
get :show, :params => { :id => container_replicator.id }
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Replicators",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Replicators",
:url => "/container_replicator/show_list?page=&refresh=y"},
{:name => "Test Replicator (Summary)",
:url => "/container_replicator/show/#{container_replicator.id}"}])
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/container_route_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
get :show, :params => { :id => container_route.id }
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Routes",
expect(assigns(:breadcrumbs)).to eq([{:name => "Container Routes",
:url => "/container_route/show_list?page=&refresh=y"},
{:name => "Test Route (Summary)",
:url => "/container_route/show/#{container_route.id}"}])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def empty_category(attrs = {})
rpt = FactoryGirl.create(:miq_report_chargeback)
controller.send(:valid_report?, rpt)
flash_messages = assigns(:flash_array)
flash_str = 'A specific Project or all must be selected'
flash_str = 'A specific Container Project or all must be selected'
expect(flash_messages.first[:message]).to eq(flash_str)
expect(flash_messages.first[:level]).to eq(:error)
end
Expand Down

0 comments on commit 92dcdf7

Please sign in to comment.