spec/controllers/hyrax/my/collections_controller_spec.rb in hyrax-2.1.0.beta1 vs spec/controllers/hyrax/my/collections_controller_spec.rb in hyrax-2.1.0.beta2
- old
+ new
@@ -11,10 +11,10 @@
it "shows the search results and sets breadcrumbs" do
expect(controller).to receive(:search_results).with(ActionController::Parameters).and_return([response, doc_list])
expect(controller).to receive(:add_breadcrumb).with('Home', root_path(locale: 'en'))
- expect(controller).to receive(:add_breadcrumb).with('Administration', dashboard_path(locale: 'en'))
+ expect(controller).to receive(:add_breadcrumb).with('Dashboard', dashboard_path(locale: 'en'))
expect(controller).to receive(:add_breadcrumb).with('Collections', my_collections_path(locale: 'en'))
get :index, params: { per_page: 2 }
expect(assigns[:document_list].length).to eq 2
end